diff options
Diffstat (limited to 'lib/strequal.c')
-rw-r--r-- | lib/strequal.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/strequal.c b/lib/strequal.c index 49dc4880b..639a7ffc2 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -52,8 +52,8 @@ int curl_strequal(const char *first, const char *second) #elif defined(HAVE_STRICMP) return !(stricmp)(first, second); #else - while (*first && *second) { - if (toupper(*first) != toupper(*second)) { + while(*first && *second) { + if(toupper(*first) != toupper(*second)) { break; } first++; @@ -72,8 +72,8 @@ int curl_strnequal(const char *first, const char *second, size_t max) #elif defined(HAVE_STRICMP) return !strnicmp(first, second, max); #else - while (*first && *second && max) { - if (toupper(*first) != toupper(*second)) { + while(*first && *second && max) { + if(toupper(*first) != toupper(*second)) { break; } max--; @@ -132,15 +132,15 @@ size_t Curl_strlcat(char *dst, const char *src, size_t siz) size_t dlen; /* Find the end of dst and adjust bytes left but don't go past end */ - while (n-- != 0 && *d != '\0') + while(n-- != 0 && *d != '\0') d++; dlen = d - dst; n = siz - dlen; - if (n == 0) + if(n == 0) return(dlen + strlen(s)); - while (*s != '\0') { - if (n != 1) { + while(*s != '\0') { + if(n != 1) { *d++ = *s; n--; } |