From: David Lawrence Ramsey Date: Thu, 13 Jan 2005 15:24:05 +0000 (+0000) Subject: cosmetic fixes X-Git-Tag: v1.3.6~146 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=78dadd45505108b195c69b14277c65730a4e2e45;p=nano.git cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/utils.c b/src/utils.c index 8ccfeecb..36e4a2e1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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;