diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-06-08 02:10:38 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2011-06-08 02:10:38 +0200 |
commit | 4a6303ba3b64504ab0077b9cfebd2a4b918d531d (patch) | |
tree | 6983b4eea08aad88b54c5caca89b3c20bbdbb263 /include/bsd | |
parent | 7446f029b52f15b318402c3827802cdf31727566 (diff) | |
download | libbsd-4a6303ba3b64504ab0077b9cfebd2a4b918d531d.tar.gz |
Constify bsd_getopt(3) arguments
This matches the standard declaration for getopt(3).
Diffstat (limited to 'include/bsd')
-rw-r--r-- | include/bsd/unistd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bsd/unistd.h b/include/bsd/unistd.h index 1c4e579..edb0ec5 100644 --- a/include/bsd/unistd.h +++ b/include/bsd/unistd.h @@ -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); |