set of portability changes from lint/asan/ubsan

This commit is contained in:
Chet Ramey
2023-01-07 13:18:20 -05:00
parent 2e725f7346
commit 8fd8cd8f7b
35 changed files with 162 additions and 106 deletions
+2 -2
View File
@@ -445,9 +445,9 @@ static intmax_t
subexpr (const char *expr)
{
intmax_t val;
char *p;
const char *p;
for (p = (char *)expr; p && *p && cr_whitespace (*p); p++)
for (p = expr; p && *p && cr_whitespace (*p); p++)
;
if (p == NULL || *p == '\0')