diff options
author | Herb Lewis <herb@samba.org> | 2006-12-13 21:28:45 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2006-12-13 21:28:45 +0000 |
commit | 7dba859ea8b6001c2ac3ef45c93abb583aedfa39 (patch) | |
tree | d9d391afe6a93a1293efd2b1edc4b10394d92267 /source/lib/iconv.c | |
parent | fe1208b03d656e54f165a0b6b9e4e1d7d812581b (diff) | |
download | samba-7dba859ea8b6001c2ac3ef45c93abb583aedfa39.tar.gz samba-7dba859ea8b6001c2ac3ef45c93abb583aedfa39.tar.xz samba-7dba859ea8b6001c2ac3ef45c93abb583aedfa39.zip |
r20159: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_NATIVE_ICONV
Diffstat (limited to 'source/lib/iconv.c')
-rw-r--r-- | source/lib/iconv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/iconv.c b/source/lib/iconv.c index c96243633fb..6e040b77f17 100644 --- a/source/lib/iconv.c +++ b/source/lib/iconv.c @@ -128,6 +128,7 @@ static void lazy_initialize_iconv(void) } } +#ifdef HAVE_NATIVE_ICONV /* if there was an error then reset the internal state, this ensures that we don't have a shift state remaining for character sets like SJIS */ @@ -135,7 +136,6 @@ static size_t sys_iconv(void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { -#ifdef HAVE_NATIVE_ICONV size_t ret = iconv((iconv_t)cd, (char **)inbuf, inbytesleft, outbuf, outbytesleft); @@ -145,11 +145,8 @@ static size_t sys_iconv(void *cd, errno = saved_errno; } return ret; -#else - errno = EINVAL; - return -1; -#endif } +#endif /** * This is a simple portable iconv() implementaion. |