diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-02-07 22:31:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-11 20:57:34 +0100 |
commit | 9d90e219c175ba5dde2170e34d83093ef3a99101 (patch) | |
tree | 8d21d768689ff23d9e41344d4e5b3a3439d13cb4 /include/getopt.h | |
parent | c7a9534359ad0ea59ef8d985d03cc4bcc771795d (diff) | |
download | barebox-9d90e219c175ba5dde2170e34d83093ef3a99101.tar.gz barebox-9d90e219c175ba5dde2170e34d83093ef3a99101.tar.xz |
getopt: change optstring to const char*
Change getopt optstring parameter type to const char *.
Also change type to const char * of tmp variable which
pointed to optstring. This will only handle readonly.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/getopt.h')
-rw-r--r-- | include/getopt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/getopt.h b/include/getopt.h index f23175fb87..4f48ba8fd9 100644 --- a/include/getopt.h +++ b/include/getopt.h @@ -35,7 +35,7 @@ extern char *optarg; * - options can be mixed with nonoptions (like ls /bin -R) */ -int getopt(int argc, char *argv[], char *optstring); +int getopt(int argc, char *argv[], const char *optstring); struct getopt_context { int opterr; |