summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-09-07 19:01:49 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-09-07 19:01:49 +0200
commit1b5891b03d4578526823ea1c8f93c87cdfa6e85b (patch)
tree745356a6089497ac93108322304ac18b05636510 /util.c
parent5c5a526d0abe22cb7fc30707bd14f09d8b5d1f9c (diff)
util.c: remove remaining uint8_t type, we assume a sane CHAR_BIT == 8
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 {