diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:55 +0000 |
commit | d9e15f206840219bb0f39c912a42fdcf8cbcaed6 (patch) | |
tree | ffdef7f5ab4a33038d0a62c9355b48f362aa463e /coreutils | |
parent | 079f8afa0a16112cbaf7012c82b38b7358b82141 (diff) | |
download | busybox-d9e15f206840219bb0f39c912a42fdcf8cbcaed6.tar.gz |
style cleanup: return(a) -> return a, part 2
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/diff.c | 16 | ||||
-rw-r--r-- | coreutils/mv.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index 2920bf143..0b83c9ddf 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c @@ -342,7 +342,7 @@ static int isqrt(int n) x /= 2; } while ((x - y) > 1 || (x - y) < -1); - return (x); + return x; } static int newcand(int x, int y, int pred) @@ -357,7 +357,7 @@ static int newcand(int x, int y, int pred) q->x = x; q->y = y; q->pred = pred; - return (clen++); + return clen++; } @@ -366,7 +366,7 @@ static int search(int *c, int k, int y) int i, j, l, t; if (clist[c[k]].y < y) /* quick look for typical case */ - return (k + 1); + return k + 1; i = 0; j = k + 1; while (1) { @@ -379,9 +379,9 @@ static int search(int *c, int k, int y) else if (t < y) i = l; else - return (l); + return l; } - return (l + 1); + return l + 1; } @@ -428,7 +428,7 @@ static int stone(int *a, int n, int *b, int *c) } } while ((y = b[++j]) > 0 && numtries < bound); } - return (k); + return k; } static void unravel(int p) @@ -461,7 +461,7 @@ static int skipline(FILE * f) for (i = 1; (c = getc(f)) != '\n' && c != EOF; i++) continue; - return (i); + return i; } @@ -977,7 +977,7 @@ static int diffreg(char *ofile1, char *ofile2, int flags) free(file1); if (file2 != ofile2) free(file2); - return (rval); + return rval; } #if ENABLE_FEATURE_DIFF_DIR diff --git a/coreutils/mv.c b/coreutils/mv.c index 52ddd9fb7..353124b35 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c @@ -127,5 +127,5 @@ RET_0: } } while (*++argv != last); - return (status); + return status; } |