mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
Constify bsd_getopt(3) arguments
This matches the standard declaration for getopt(3).
This commit is contained in:
parent
7446f029b5
commit
4a6303ba3b
@ -49,7 +49,7 @@ extern int optreset;
|
||||
#define getopt(argc, argv, optstr) bsd_getopt(argc, argv, optstr)
|
||||
#endif
|
||||
|
||||
int bsd_getopt(int, char **, char *);
|
||||
int bsd_getopt(int argc, char * const argv[], const char *shortopts)
|
||||
|
||||
mode_t getmode(const void *set, mode_t mode);
|
||||
void *setmode(const char *mode_str);
|
||||
|
@ -29,7 +29,7 @@
|
||||
int optreset = 0;
|
||||
|
||||
int
|
||||
bsd_getopt(int argc, char **argv, char *shortopts)
|
||||
bsd_getopt(int argc, char * const argv[], const char *shortopts)
|
||||
{
|
||||
if (optreset == 1) {
|
||||
optreset = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user