diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-07 19:01:49 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-07 19:01:49 +0200 |
commit | 1b5891b03d4578526823ea1c8f93c87cdfa6e85b (patch) | |
tree | 745356a6089497ac93108322304ac18b05636510 | |
parent | 5c5a526d0abe22cb7fc30707bd14f09d8b5d1f9c (diff) |
util.c: remove remaining uint8_t type, we assume a sane CHAR_BIT == 8
-rw-r--r-- | util.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 { |