diff options
author | Paul Green <paulg@samba.org> | 2004-09-06 00:24:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:36 -0500 |
commit | acc793ead7e61f1eb87864b676d26f5791367228 (patch) | |
tree | d924d8ac52b8edbed45a937693d9fadd02d96069 /source/lib | |
parent | dd9b17abd6b32c090840c1a0b797fd774711cb3a (diff) | |
download | samba-acc793ead7e61f1eb87864b676d26f5791367228.tar.gz samba-acc793ead7e61f1eb87864b676d26f5791367228.tar.xz samba-acc793ead7e61f1eb87864b676d26f5791367228.zip |
r2231: Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t type, which does not exist on all platforms.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/iconv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/iconv.c b/source/lib/iconv.c index 17cafdcbd6b..66a6e6cd8bc 100644 --- a/source/lib/iconv.c +++ b/source/lib/iconv.c @@ -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; |