From d9e15f206840219bb0f39c912a42fdcf8cbcaed6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 27 Nov 2006 16:49:55 +0000 Subject: style cleanup: return(a) -> return a, part 2 --- coreutils/diff.c | 16 ++++++++-------- coreutils/mv.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'coreutils') 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; } -- cgit v1.2.3