cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-01-13 15:24:05 +00:00
parent ea9370f231
commit 78dadd4550
1 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ const char *revstrstr(const char *haystack, const char *needle, const
for (; rev_start >= haystack; rev_start--) {
const char *r, *q;
for (r = rev_start, q = needle ; *q == *r && *q != '\0'; r++, q++)
for (r = rev_start, q = needle; *q == *r && *q != '\0'; r++, q++)
;
if (*q == '\0')
return rev_start;
@ -245,7 +245,7 @@ const char *revstristr(const char *haystack, const char *needle, const
for (; rev_start >= haystack; rev_start--) {
const char *r = rev_start, *q = needle;
for (; (tolower(*q) == tolower(*r)) && (*q != '\0') ; r++, q++)
for (; tolower(*q) == tolower(*r) && *q != '\0'; r++, q++)
;
if (*q == '\0')
return rev_start;