diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:28:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:29:30 +0200 |
commit | c68b9e5076094d60e8f767ffcd3bb9c224fc3fe9 (patch) | |
tree | f3d2b986be5a8f0c5039658fc21e420488c07e5d /package/nfs-utils/patches/patch-support_nfs_conffile_c | |
parent | 60bc3658b3ef53082c17817690ab0c6bf7f25e26 (diff) |
fix musl compile, patches from AlpineLinux
Diffstat (limited to 'package/nfs-utils/patches/patch-support_nfs_conffile_c')
-rw-r--r-- | package/nfs-utils/patches/patch-support_nfs_conffile_c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/nfs-utils/patches/patch-support_nfs_conffile_c b/package/nfs-utils/patches/patch-support_nfs_conffile_c new file mode 100644 index 000000000..0c59eea59 --- /dev/null +++ b/package/nfs-utils/patches/patch-support_nfs_conffile_c @@ -0,0 +1,42 @@ +--- nfs-utils-1.3.0.orig/support/nfs/conffile.c 2014-03-25 16:12:07.000000000 +0100 ++++ nfs-utils-1.3.0/support/nfs/conffile.c 2014-05-17 21:30:36.886783421 +0200 +@@ -72,10 +72,10 @@ TAILQ_HEAD (conf_trans_head, conf_trans) + /* + * Radix-64 Encoding. + */ +-static const u_int8_t bin2asc[] ++static const uint8_t bin2asc[] + = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + +-static const u_int8_t asc2bin[] = ++static const uint8_t asc2bin[] = + { + 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, +@@ -109,10 +109,10 @@ LIST_HEAD (conf_bindings, conf_binding) + + static char *conf_addr; + +-static __inline__ u_int8_t ++static __inline__ uint8_t + conf_hash(char *s) + { +- u_int8_t hash = 0; ++ uint8_t hash = 0; + + while (*s) { + hash = ((hash << 1) | (hash >> 7)) ^ tolower (*s); +@@ -603,10 +603,10 @@ cleanup: + + /* Decode a PEM encoded buffer. */ + int +-conf_decode_base64 (u_int8_t *out, u_int32_t *len, u_char *buf) ++conf_decode_base64 (uint8_t *out, uint32_t *len, unsigned char *buf) + { +- u_int32_t c = 0; +- u_int8_t c1, c2, c3, c4; ++ uint32_t c = 0; ++ uint8_t c1, c2, c3, c4; + + while (*buf) { + if (*buf > 127 || (c1 = asc2bin[*buf]) == 255) |