diff options
author | RV971 <rv1971@web.de> | 2013-11-29 15:35:33 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-11-29 15:47:55 +0000 |
commit | dbf55f6694dbf710b44e3ae76a46fd8b8f993f7c (patch) | |
tree | b6f15b629adc5d6b92460012719d2a65535ce4c5 /lib/base64.c | |
parent | f284a190613bfdfe2aa1fcc180f8c861e5332826 (diff) | |
download | gnulib-dbf55f6694dbf710b44e3ae76a46fd8b8f993f7c.tar.gz |
base64: fix recent compilation regression on some compilers
This fixes a compile failure with
"Sun C 5.8 Patch 121015-05 2007/08/01"
which returns:
"base64.c", line 99: void function cannot return value
* lib/base64.c: Don't return the void function,
instead split to a separate return statement.
Diffstat (limited to 'lib/base64.c')
-rw-r--r-- | lib/base64.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base64.c b/lib/base64.c index 99c2d2e566..b8a52fd886 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -96,7 +96,10 @@ base64_encode (const char *restrict in, size_t inlen, large inputs is to have both constraints satisfied, so we depend on both in base_encode_fast(). */ if (outlen % 4 == 0 && inlen == outlen / 4 * 3) - return base64_encode_fast (in, inlen, out); + { + base64_encode_fast (in, inlen, out); + return; + } while (inlen && outlen) { |