diff options
Diffstat (limited to '')
-rw-r--r-- | src/nvme/base64.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvme/base64.c b/src/nvme/base64.c index 5fae829..0163fa1 100644 --- a/src/nvme/base64.c +++ b/src/nvme/base64.c @@ -7,6 +7,7 @@ * Author: Hannes Reinecke <hare@suse.de> */ +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <errno.h> @@ -29,7 +30,7 @@ static const char base64_table[65] = int base64_encode(const unsigned char *src, int srclen, char *dst) { int i, bits = 0; - u_int32_t ac = 0; + uint32_t ac = 0; char *cp = dst; for (i = 0; i < srclen; i++) { @@ -64,7 +65,7 @@ int base64_encode(const unsigned char *src, int srclen, char *dst) */ int base64_decode(const char *src, int srclen, unsigned char *dst) { - u_int32_t ac = 0; + uint32_t ac = 0; int i, bits = 0; unsigned char *bp = dst; |