r2231: Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t type, which...
authorPaul Green <paulg@samba.org>
Mon, 6 Sep 2004 00:24:28 +0000 (00:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:36 +0000 (10:52 -0500)
(This used to be commit acc793ead7e61f1eb87864b676d26f5791367228)

source3/lib/iconv.c

index 17cafdcbd6b9feaed6918daaf022517a9dfb55b7..66a6e6cd8bc91adb6d455421d8d26130605d847f 100644 (file)
@@ -541,8 +541,8 @@ static size_t utf8_pull(void *cd, const char **inbuf, size_t *inbytesleft,
                         char **outbuf, size_t *outbytesleft)
 {
        size_t in_left=*inbytesleft, out_left=*outbytesleft;
-       const uint8_t *c = (const uint8_t *)*inbuf;
-       uint8_t *uc = (uint8_t *)*outbuf;
+       const uint8 *c = (const uint8 *)*inbuf;
+       uint8 *uc = (uint8 *)*outbuf;
 
        while (in_left >= 1 && out_left >= 2) {
                if ((c[0] & 0x80) == 0) {
@@ -658,8 +658,8 @@ static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft,
                        char **outbuf, size_t *outbytesleft)
 {
        size_t in_left=*inbytesleft, out_left=*outbytesleft;
-       uint8_t *c = (uint8_t *)*outbuf;
-       const uint8_t *uc = (const uint8_t *)*inbuf;
+       uint8 *c = (uint8 *)*outbuf;
+       const uint8 *uc = (const uint8 *)*inbuf;
 
        while (in_left >= 2 && out_left >= 1) {
                unsigned int codepoint;