HomeFreeBSD

getopt: Fix conversion from string-literal to non-const char *

Description

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.

Details

Provenance
arichardsonAuthored on Jan 19 2021, 11:35 AM
Parents
rG74eb7f97ecd6: Fix make includes path to nvpair.h
Branches
Unknown
Tags
Unknown