projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assume vprintf.
[gnulib.git]
/
lib
/
strcasecmp.c
diff --git
a/lib/strcasecmp.c
b/lib/strcasecmp.c
index
0ae9627
..
cf4ab88
100644
(file)
--- a/
lib/strcasecmp.c
+++ b/
lib/strcasecmp.c
@@
-29,7
+29,7
@@
# define LENGTH_LIMIT_EXPR(Expr) 0
#endif
# define LENGTH_LIMIT_EXPR(Expr) 0
#endif
-#include <s
ys/types
.h>
+#include <s
tddef
.h>
#include <ctype.h>
#define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch))
#include <ctype.h>
#define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch))
@@
-51,11
+51,14
@@
STRXCASECMP_FUNCTION (const char *s1, const char *s2 STRXCASECMP_DECLARE_N)
do
{
do
{
- c1 = TOLOWER (*p1
++
);
- c2 = TOLOWER (*p2
++
);
+ c1 = TOLOWER (*p1);
+ c2 = TOLOWER (*p2);
if (LENGTH_LIMIT_EXPR (--n == 0) || c1 == '\0')
break;
if (LENGTH_LIMIT_EXPR (--n == 0) || c1 == '\0')
break;
+
+ ++p1;
+ ++p2;
}
while (c1 == c2);
}
while (c1 == c2);