diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-02 22:52:18 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-02 22:52:18 +0000 |
commit | c2c6b1701a110cbde5ff83c94dc0bf2286494081 (patch) | |
tree | d76288b94579381f1cf86f4ebf5119b61810afca | |
parent | 8b19b43d001f7c842147b366211a25edea7cbf1f (diff) | |
download | newlib-c2c6b1701a110cbde5ff83c94dc0bf2286494081.zip newlib-c2c6b1701a110cbde5ff83c94dc0bf2286494081.tar.gz newlib-c2c6b1701a110cbde5ff83c94dc0bf2286494081.tar.bz2 |
* lib/getopt.c: Nuke use of unneeded BSDisms.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/lib/getopt.c | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5c5d534..f81173f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2003-03-02 Christopher Faylor <cgf@redhat.com> + * lib/getopt.c: Nuke use of unneeded BSDisms. + +2003-03-02 Christopher Faylor <cgf@redhat.com> + * dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if LoadLibraryEx fails. * dtable.cc (dtable::dec_console_fds): Eliminate. diff --git a/winsup/cygwin/lib/getopt.c b/winsup/cygwin/lib/getopt.c index 1a4439a..e5e1029 100644 --- a/winsup/cygwin/lib/getopt.c +++ b/winsup/cygwin/lib/getopt.c @@ -36,13 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> - -/*#include "namespace.h"*/ - #include <assert.h> #include <errno.h> -/*#include <err.h>*/ #include <stdlib.h> #include <string.h> #include <getopt.h> @@ -92,9 +87,9 @@ extern char __declspec(dllimport) *__progname; #define EMSG "" -static int getopt_internal __P((int, char * const *, const char *)); -static int gcd __P((int, int)); -static void permute_args __P((int, int, int, char * const *)); +static int getopt_internal (int, char * const *, const char *); +static int gcd (int, int); +static void permute_args (int, int, int, char * const *); static const char *place = EMSG; /* option letter processing */ |