summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util.c b/util.c
index e74983f..89c2ef7 100644
--- a/util.c
+++ b/util.c
@@ -6,7 +6,6 @@
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -105,8 +104,8 @@ encodeuri(char *buf, size_t bufsiz, const char *s)
if (b + 3 >= bufsiz)
return -1;
buf[b++] = '%';
- buf[b++] = table[((uint8_t)s[i] >> 4) & 15];
- buf[b++] = table[(uint8_t)s[i] & 15];
+ buf[b++] = table[((unsigned char)s[i] >> 4) & 15];
+ buf[b++] = table[(unsigned char)s[i] & 15];
} else if (b < bufsiz) {
buf[b++] = s[i];
} else {