diff options
Diffstat (limited to 'apps')
-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, | |||
1263 | *s = p; | 1263 | *s = p; |
1264 | while (*p && *p != sep) | 1264 | while (*p && *p != sep) |
1265 | p++; | 1265 | p++; |
1266 | set = (*s[0]!='-') && (*s[1]!=sep) ; | 1266 | set = (s[0][0]!='-') && (s[0][1]!=sep) ; |
1267 | break; | 1267 | break; |
1268 | 1268 | ||
1269 | case 'd': /* int */ | 1269 | 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 @@ | |||
20 | #define MISC_H | 20 | #define MISC_H |
21 | 21 | ||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | 23 | #include <inttypes.h> | |
24 | /* Format a large-range value for output, using the appropriate unit so that | 24 | /* Format a large-range value for output, using the appropriate unit so that |
25 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" | 25 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" |
26 | * units) if possible, and 3 significant digits are shown. If a buffer is | 26 | * units) if possible, and 3 significant digits are shown. If a buffer is |