base64: fix recent compilation regression on some compilers
authorRV971 <rv1971@web.de>
Fri, 29 Nov 2013 15:35:33 +0000 (15:35 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 29 Nov 2013 15:47:55 +0000 (15:47 +0000)
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.

ChangeLog
lib/base64.c

index 21659ea..4765a7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-29  RV1971  <rv1971@web.de>
+
+       base64: (trivial) fix compilation regression on some compilers
+       * lib/base64.c: Don't return the void function,
+       instead split to a separate return statement.
+
 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        ignore-value: revert previous code change
index 99c2d2e..b8a52fd 100644 (file)
@@ -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)
     {