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

@@ -33,7 +33,7 @@
sudo_dso_public int main(int argc, char *argv[]);
const struct gentime_test {
char *gentime;
const char *gentime;
time_t unixtime;
} tests[] = {
{ "199412161032ZZ", -1 },
@@ -65,7 +65,7 @@ main(int argc, char *argv[])
initprogname(argc > 0 ? argv[0] : "check_gentime");
/* Do local time tests in Eastern Standard Time. */
putenv("TZ=EST5EST5");
putenv((char *)"TZ=EST5EST5");
tzset();
for (i = 0; i < ntests; i++) {