aboutsummaryrefslogtreecommitdiff
path: root/lib/strequal.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-07 09:21:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-07 09:21:35 +0000
commitcbd1a77ec24e397d05f20c6de106625676343c9d (patch)
treeb92440210b287a25e34293646d26fe124581c767 /lib/strequal.c
parent33f7ac06c3aaecf995360323d6f425e769e6fa79 (diff)
if () => if()
while () => while() and some other minor re-indentings
Diffstat (limited to 'lib/strequal.c')
-rw-r--r--lib/strequal.c16
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--;
}