White space around control verbs.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2013-03-03 23:21:33 -05:00
parent 53bc747d31
commit bdae1d8a8d
16 changed files with 42 additions and 42 deletions

View File

@ -108,7 +108,7 @@ char *trim_end(const char *str, char c)
if (str == NULL)
return NULL;
len = strlen(str);
while(len > 0 && str[len - 1] == c)
while (len > 0 && str[len - 1] == c)
len--;
if (len == 0)
return NULL;
@ -351,16 +351,16 @@ int cgit_parse_snapshots_mask(const char *str)
int tl, sl, rv = 0;
/* favor legacy setting */
if(atoi(str))
if (atoi(str))
return 1;
for(;;) {
for (;;) {
str += strspn(str, delim);
tl = strcspn(str, delim);
if (!tl)
break;
for (f = cgit_snapshot_formats; f->suffix; f++) {
sl = strlen(f->suffix);
if((tl == sl && !strncmp(f->suffix, str, tl)) ||
if ((tl == sl && !strncmp(f->suffix, str, tl)) ||
(tl == sl - 1 && !strncmp(f->suffix + 1, str, tl - 1))) {
rv |= f->bit;
break;