Thread
-
[PATCH v1] Fix a case of indirectly casting away const
Bertrand Drouvot <bertranddrouvot.pg@gmail.com> — 2025-12-08T07:05:19Z
This one has been missed in 8f1791c6183. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/1324889.1764886170@sss.pgh.pa.us --- src/port/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 100.0% src/port/ diff --git a/src/port/getopt.c b/src/port/getopt.c index 655fef3b0c7..2cca5a0673a 100644 --- a/src/port/getopt.c +++ b/src/port/getopt.c @@ -72,7 +72,7 @@ int getopt(int nargc, char *const *nargv, const char *ostr) { static char *place = EMSG; /* option letter processing */ - char *oli; /* option letter list index */ + const char *oli; /* option letter list index */ if (!*place) { /* update scanning pointer */ -- 2.34.1 --Ujs/Qw+cIIb0rnco--