diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-07-27 00:17:12 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-07-27 00:17:12 +0000 |
commit | 4220952d4d4e3b02701326ea2189a71ab3529a5f (patch) | |
tree | 8776bc456cfd36b702a562e259456992904661a2 /cups/transcode.c | |
parent | c7017eccd21da514f345a5c7a41156b1adf7cb35 (diff) |
Merge changes from CUPS 1.5svn-r9214.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@2395 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/transcode.c')
-rw-r--r-- | cups/transcode.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cups/transcode.c b/cups/transcode.c index 7b98f2518..f437dfe09 100644 --- a/cups/transcode.c +++ b/cups/transcode.c @@ -88,7 +88,6 @@ cupsCharsetToUTF8( const cups_encoding_t encoding) /* I - Encoding */ { cups_utf8_t *destptr; /* Pointer into UTF-8 buffer */ - int bytes; /* Number of bytes converted */ size_t srclen, /* Length of source string */ outBytesLeft; /* Bytes remaining in output buffer */ @@ -172,9 +171,10 @@ cupsCharsetToUTF8( { srclen = strlen(src); outBytesLeft = maxout - 1; - bytes = (int)iconv(map_to_utf8, (char **)&src, &srclen, - (char **)&destptr, &outBytesLeft); - *destptr = '\0'; + + iconv(map_to_utf8, (char **)&src, &srclen, (char **)&destptr, + &outBytesLeft); + *destptr = '\0'; _cupsMutexUnlock(&map_mutex); @@ -206,7 +206,6 @@ cupsUTF8ToCharset( const cups_encoding_t encoding) /* I - Encoding */ { char *destptr; /* Pointer into destination */ - int bytes; /* Number of bytes converted */ size_t srclen, /* Length of source string */ outBytesLeft; /* Bytes remaining in output buffer */ @@ -293,9 +292,9 @@ cupsUTF8ToCharset( { srclen = strlen((char *)src); outBytesLeft = maxout - 1; - bytes = (int)iconv(map_from_utf8, (char **)&src, &srclen, - &destptr, &outBytesLeft); - *destptr = '\0'; + + iconv(map_from_utf8, (char **)&src, &srclen, &destptr, &outBytesLeft); + *destptr = '\0'; _cupsMutexUnlock(&map_mutex); |