From 02365c20643dc9daf97ff00deb9487d973d96ec3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 13 Nov 2013 09:09:45 +0000 Subject: * 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. --- newlib/libc/include/getopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/include/getopt.h') 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 -- cgit v1.2.3