diff options
-rw-r--r-- | apps/misc.c | 2 | ||||
-rw-r--r-- | apps/misc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c index bca66dcb54..9df6637656 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1263,7 +1263,7 @@ const char* parse_list(const char *fmt, uint32_t *set_vals, *s = p; while (*p && *p != sep) p++; - set = (*s[0]!='-') && (*s[1]!=sep) ; + set = (s[0][0]!='-') && (s[0][1]!=sep) ; break; case 'd': /* int */ diff --git a/apps/misc.h b/apps/misc.h index 8394a6396a..6c216f4e38 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -20,7 +20,7 @@ #define MISC_H #include <stdbool.h> - +#include <inttypes.h> /* Format a large-range value for output, using the appropriate unit so that * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" * units) if possible, and 3 significant digits are shown. If a buffer is |