From bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Sun, 3 Mar 2013 23:21:33 -0500 Subject: White space around control verbs. Signed-off-by: Jason A. Donenfeld --- shared.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared.c') diff --git a/shared.c b/shared.c index 01800b6..e732064 100644 --- a/shared.c +++ b/shared.c @@ -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; -- cgit v1.2.3-70-g09d2