diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-09 23:55:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-11 09:29:50 +0200 |
commit | e5743f08e7efb387bb39c0dc28f36838ece3bc1e (patch) | |
tree | b0237e17762f3be2bb6f8cf53fea1491a2c731ad /src/tool_urlglob.c | |
parent | ca86006debc4570bbb3eacb71965c9d59be14084 (diff) | |
download | curl-e5743f08e7efb387bb39c0dc28f36838ece3bc1e.tar.gz |
code style: use spaces around pluses
Diffstat (limited to 'src/tool_urlglob.c')
-rw-r--r-- | src/tool_urlglob.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index 42cb086db..df85d7129 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -49,7 +49,7 @@ static CURLcode glob_fixed(URLGlob *glob, char *fixed, size_t len) if(!pat->content.Set.elements) return GLOBERROR("out of memory", 0, CURLE_OUT_OF_MEMORY); - pat->content.Set.elements[0] = malloc(len+1); + pat->content.Set.elements[0] = malloc(len + 1); if(!pat->content.Set.elements[0]) return GLOBERROR("out of memory", 0, CURLE_OUT_OF_MEMORY); @@ -113,7 +113,7 @@ static CURLcode glob_set(URLGlob *glob, char **patternp, CURLE_URL_MALFORMAT); /* add 1 to size since it'll be incremented below */ - if(multiply(amount, pat->content.Set.size+1)) + if(multiply(amount, pat->content.Set.size + 1)) return GLOBERROR("range overflow", 0, CURLE_URL_MALFORMAT); /* fall-through */ @@ -207,7 +207,7 @@ static CURLcode glob_range(URLGlob *glob, char **patternp, if(errno || &pattern[4] == endp || *endp != ']') step = 0; else - pattern = endp+1; + pattern = endp + 1; } else if(end_c != ']') /* then this is wrong */ @@ -264,7 +264,7 @@ static CURLcode glob_range(URLGlob *glob, char **patternp, if(*endp != '-') endp = NULL; else { - pattern = endp+1; + pattern = endp + 1; while(*pattern && ISBLANK(*pattern)) pattern++; if(!ISDIGIT(*pattern)) { @@ -277,7 +277,7 @@ static CURLcode glob_range(URLGlob *glob, char **patternp, /* overflow */ endp = NULL; else if(*endp == ':') { - pattern = endp+1; + pattern = endp + 1; errno = 0; step_n = strtoul(pattern, &endp, 10); if(errno) @@ -287,7 +287,7 @@ static CURLcode glob_range(URLGlob *glob, char **patternp, else step_n = 1; if(endp && (*endp == ']')) { - pattern = endp+1; + pattern = endp + 1; } else endp = NULL; @@ -384,8 +384,8 @@ static CURLcode glob_parse(URLGlob *glob, char *pattern, /* only allow \ to escape known "special letters" */ if(*pattern == '\\' && - (*(pattern+1) == '{' || *(pattern+1) == '[' || - *(pattern+1) == '}' || *(pattern+1) == ']') ) { + (*(pattern + 1) == '{' || *(pattern + 1) == '[' || + *(pattern + 1) == '}' || *(pattern + 1) == ']') ) { /* escape character, skip '\' */ ++pattern; |