optarg should be "extern char *" not "extern const char *".

This commit is contained in:
Nicholas Marriott
2025-05-01 07:53:02 +01:00
parent 1905afb3d8
commit 6cc1a607fc
2 changed files with 9 additions and 9 deletions

View File

@ -466,11 +466,11 @@ int utf8proc_wctomb(char *, wchar_t);
#endif
/* getopt.c */
extern int BSDopterr;
extern int BSDoptind;
extern int BSDoptopt;
extern int BSDoptreset;
extern const char *BSDoptarg;
extern int BSDopterr;
extern int BSDoptind;
extern int BSDoptopt;
extern int BSDoptreset;
extern char *BSDoptarg;
int BSDgetopt(int, char *const *, const char *);
#define getopt(ac, av, o) BSDgetopt(ac, av, o)
#define opterr BSDopterr