X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fc-strncasecmp.c;h=ef737164d12318ff5b98a5a652ed28192f2a04b2;hb=f03c8d5562c251bfa6850372bb68d8eb346205f8;hp=2d260efb67cef9de2b66dc502b5443eb6b874f68;hpb=89e15da69a6c83aef9b0f324286465af40560ad9;p=gnulib.git diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c index 2d260efb6..ef737164d 100644 --- a/lib/c-strncasecmp.c +++ b/lib/c-strncasecmp.c @@ -1,5 +1,5 @@ /* c-strncasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998, 1999, 2005 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,9 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "c-strcase.h" @@ -42,7 +40,7 @@ c_strncasecmp (const char *s1, const char *s2, size_t n) c2 = c_tolower (*p2); if (--n == 0 || c1 == '\0') - break; + break; ++p1; ++p2;