]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
getopt: Fix conversion from string-literal to non-const char *
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 19 Jan 2021 11:35:04 +0000 (11:35 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Tue, 19 Jan 2021 21:23:25 +0000 (21:23 +0000)
commit0348c8fcfaa22d4f2bf548ad9c187c09ef90c533
tree743b8bf3b822a32712f27910687562491dca6a42
parent74eb7f97ecd62d0a7e056e4c2fd696f2c267e3a5
getopt: Fix conversion from string-literal to non-const char *

Define a non-const static char EMSG[] = "" to avoid having to add
__DECONST() to all uses of EMSG. Also make current_dash a const char *
to fix this warning.
lib/libc/stdlib/getopt.c
lib/libc/stdlib/getopt_long.c
tools/build/mk/Makefile.boot