Fix all current build warnings in LibC.

This commit is contained in:
Andreas Kling 2018-11-09 10:09:46 +01:00
commit e9cdb6bb9b
Notes: sideshowbarker 2024-07-19 18:31:22 +09:00
9 changed files with 19 additions and 17 deletions

View file

@ -91,7 +91,7 @@ int getopt(int nargc, char* const nargv[], const char* ostr)
}
else { /* need an argument */
if (*place) /* no white space */
optarg = (char*)place;
optarg = const_cast<char*>(place);
else if (nargc <= ++optind) { /* no arg */
place = EMSG;
if (*ostr == ':')