]> Savannah Git Hosting - gnulib.git/commitdiff
base32: mark function as __attribute__ const
authorPádraig Brady <P@draigBrady.com>
Tue, 1 Sep 2015 10:59:35 +0000 (11:59 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 1 Sep 2015 11:26:45 +0000 (12:26 +0100)
* lib/base32.h (isbase32): Mark __attribute__ const as
suggested by GCC, and consistent with the base64 module.

ChangeLog
lib/base32.h

index 738490073509c225282d50c538431e9f5921e2e2..cfefa5a85f819e15ca9b3faafb8249816ed0b98a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-09-01  Pádraig Brady  <P@draigBrady.com>
+
+       base32: mark function as __attribute__ const
+       * lib/base32.h (isbase32): Mark __attribute__ const as
+       suggested by GCC, and consistent with the base64 module.
+
 2015-08-20  Daiki Ueno  <ueno@gnu.org>
 
        gnulib-tool: don't transform binary files with sed
index f2cc060941ff2bc9ae7e28bda81d100e25a6178f..7787da9d7c583a17be46581edf8e80eb27cc6ea1 100644 (file)
@@ -34,7 +34,7 @@ struct base32_decode_context
   char buf[8];
 };
 
-extern bool isbase32 (char ch);
+extern bool isbase32 (char ch) _GL_ATTRIBUTE_CONST;
 
 extern void base32_encode (const char *restrict in, size_t inlen,
                            char *restrict out, size_t outlen);