mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-05-29 15:34:10 +02: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)
|
#define getopt(argc, argv, optstr) bsd_getopt(argc, argv, optstr)
|
||||||
#endif
|
#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);
|
mode_t getmode(const void *set, mode_t mode);
|
||||||
void *setmode(const char *mode_str);
|
void *setmode(const char *mode_str);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
int optreset = 0;
|
int optreset = 0;
|
||||||
|
|
||||||
int
|
int
|
||||||
bsd_getopt(int argc, char **argv, char *shortopts)
|
bsd_getopt(int argc, char * const argv[], const char *shortopts)
|
||||||
{
|
{
|
||||||
if (optreset == 1) {
|
if (optreset == 1) {
|
||||||
optreset = 0;
|
optreset = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user