diff options
author | Bruno Haible <bruno@clisp.org> | 2002-11-14 15:00:41 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:08:51 +0200 |
commit | 741bd98a238c11918aadca01170c3e012f435216 (patch) | |
tree | e02044fbd2f14e93be9224eb31c6b94b62ff92f0 /lib/strcasecmp.c | |
parent | 9db2f21d62bd228d353c8d08dc5baa8ccdf136c2 (diff) | |
download | external_gettext-741bd98a238c11918aadca01170c3e012f435216.zip external_gettext-741bd98a238c11918aadca01170c3e012f435216.tar.gz external_gettext-741bd98a238c11918aadca01170c3e012f435216.tar.bz2 |
Switch from K&R C to ANSI C.
Diffstat (limited to 'lib/strcasecmp.c')
-rw-r--r-- | lib/strcasecmp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/strcasecmp.c b/lib/strcasecmp.c index 778d317..8f85d15 100644 --- a/lib/strcasecmp.c +++ b/lib/strcasecmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991-1992, 1995-1997, 2002 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. @@ -38,21 +38,16 @@ #endif #ifdef USE_IN_EXTENDED_LOCALE_MODEL -# define LOCALE_PARAM , loc -# define LOCALE_PARAM_DECL __locale_t loc; +# define LOCALE_PARAM , __locale_t loc #else # define LOCALE_PARAM -# define LOCALE_PARAM_DECL #endif /* Compare S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ int -__strcasecmp (s1, s2 LOCALE_PARAM) - const char *s1; - const char *s2; - LOCALE_PARAM_DECL +__strcasecmp (const char *s1, const char *s2 LOCALE_PARAM) { const unsigned char *p1 = (const unsigned char *) s1; const unsigned char *p2 = (const unsigned char *) s2; |