[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] base32: mark function as __attribute__ const
From: |
Pádraig Brady |
Subject: |
[PATCH] base32: mark function as __attribute__ const |
Date: |
Tue, 1 Sep 2015 12:27:57 +0100 |
* lib/base32.h (isbase32): Mark __attribute__ const as
suggested by GCC, and consistent with the base64 module.
---
ChangeLog | 6 ++++++
lib/base32.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 7384900..cfefa5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-09-01 P??draig Brady <address@hidden>
+
+ 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 <address@hidden>
gnulib-tool: don't transform binary files with sed
diff --git a/lib/base32.h b/lib/base32.h
index f2cc060..7787da9 100644
--- a/lib/base32.h
+++ b/lib/base32.h
@@ -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);
--
2.4.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] base32: mark function as __attribute__ const,
Pádraig Brady <=