summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/getopt.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-11-13 09:09:45 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-11-13 09:09:45 +0000
commit02365c20643dc9daf97ff00deb9487d973d96ec3 (patch)
tree7771da65c3855bda3c5dba3760a58f51ea2e71f1 /newlib/libc/include/getopt.h
parent8246caa9426b512c1797b3e520a87870a06ce158 (diff)
downloadcygnal-02365c20643dc9daf97ff00deb9487d973d96ec3.tar.gz
cygnal-02365c20643dc9daf97ff00deb9487d973d96ec3.tar.bz2
cygnal-02365c20643dc9daf97ff00deb9487d973d96ec3.zip
* newlib/libc/include/getopt.h (struct option): name field should be
"const char *". * newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc() instead of fprintf() to save code space. Fix signed/unsigned comparison.
Diffstat (limited to 'newlib/libc/include/getopt.h')
-rw-r--r--newlib/libc/include/getopt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/getopt.h b/newlib/libc/include/getopt.h
index ba8da4a7f..e12d253d4 100644
--- a/newlib/libc/include/getopt.h
+++ b/newlib/libc/include/getopt.h
@@ -104,7 +104,7 @@ extern "C"
/* types defined by this include file */
struct option
{
- char *name; /* the name of the long option */
+ const char *name; /* the name of the long option */
int has_arg; /* one of the above macros */
int *flag; /* determines if getopt_long() returns a
* value for a long option; if it is