Make sudo pass -Wwrite-strings

This commit is contained in:
Todd C. Miller
2022-06-28 16:33:15 -06:00
parent b3a8cad346
commit 13672f28df
77 changed files with 590 additions and 640 deletions

View File

@@ -818,13 +818,13 @@ env_update_didvar(const char *ep, unsigned int *didvar)
}
#define CHECK_PUTENV(a, b, c) do { \
if (sudo_putenv((a), (b), (c)) == -1) { \
if (sudo_putenv((char *)(a), (b), (c)) == -1) { \
goto bad; \
} \
} while (0)
#define CHECK_SETENV2(a, b, c, d) do { \
if (sudo_setenv2((a), (b), (c), (d)) == -1) { \
if (sudo_setenv2((char *)(a), (b), (c), (d)) == -1) { \
goto bad; \
} \
} while (0)