summaryrefslogtreecommitdiff
path: root/lib/base32.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:08 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:53 -0800
commit048e39bedd6462f48d29df2aee9091895e04bd4a (patch)
tree4130a89614c10d4434ee56275250f6bb7c876e01 /lib/base32.c
parentcafeb9ce71d2bf8fa489a28182e6e2a33d3ef420 (diff)
downloadgnulib-048e39bedd6462f48d29df2aee9091895e04bd4a.tar.gz
base32, base64: no need for 'inline'
* lib/base32.c (to_uchar, get_8, decode_8): * lib/base64.c (to_uchar, get_4, decode_4): Change 'static inline' to 'inline'. * m4/base32.m4 (gl_PREREQ_BASE32): * m4/base64.m4 (gl_PREREQ_BASE64): Do not require AC_C_INLINE.
Diffstat (limited to 'lib/base32.c')
-rw-r--r--lib/base32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base32.c b/lib/base32.c
index df7d3b2055..0237793a27 100644
--- a/lib/base32.c
+++ b/lib/base32.c
@@ -51,7 +51,7 @@
#include <string.h>
/* C89 compliant way to cast 'char' to 'unsigned char'. */
-static inline unsigned char
+static unsigned char
to_uchar (char ch)
{
return ch;
@@ -302,7 +302,7 @@ base32_decode_ctx_init (struct base32_decode_context *ctx)
and return CTX->buf. In either case, advance *IN to point to the byte
after the last one processed, and set *N_NON_NEWLINE to the number of
verified non-newline bytes accessible through the returned pointer. */
-static inline char *
+static char *
get_8 (struct base32_decode_context *ctx,
char const *restrict *in, char const *restrict in_end,
size_t *n_non_newline)
@@ -356,7 +356,7 @@ get_8 (struct base32_decode_context *ctx,
as many bytes as possible are written to *OUT. On return, advance
*OUT to point to the byte after the last one written, and decrement
*OUTLEN to reflect the number of bytes remaining in *OUT. */
-static inline bool
+static bool
decode_8 (char const *restrict in, size_t inlen,
char *restrict *outp, size_t *outleft)
{