aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 16:49:55 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 16:49:55 +0000
commitdb172fe425634b7d784ae1d5af6d88b96b4e747e (patch)
treeffdef7f5ab4a33038d0a62c9355b48f362aa463e /coreutils/diff.c
parentbb89b301143fe9deb962bb2d48264b27a945fcf4 (diff)
downloadbusybox-w32-db172fe425634b7d784ae1d5af6d88b96b4e747e.tar.gz
busybox-w32-db172fe425634b7d784ae1d5af6d88b96b4e747e.tar.bz2
busybox-w32-db172fe425634b7d784ae1d5af6d88b96b4e747e.zip
style cleanup: return(a) -> return a, part 2
git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r--coreutils/diff.c16
1 files changed, 8 insertions, 8 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)
342 x /= 2; 342 x /= 2;
343 } while ((x - y) > 1 || (x - y) < -1); 343 } while ((x - y) > 1 || (x - y) < -1);
344 344
345 return (x); 345 return x;
346} 346}
347 347
348static int newcand(int x, int y, int pred) 348static int newcand(int x, int y, int pred)
@@ -357,7 +357,7 @@ static int newcand(int x, int y, int pred)
357 q->x = x; 357 q->x = x;
358 q->y = y; 358 q->y = y;
359 q->pred = pred; 359 q->pred = pred;
360 return (clen++); 360 return clen++;
361} 361}
362 362
363 363
@@ -366,7 +366,7 @@ static int search(int *c, int k, int y)
366 int i, j, l, t; 366 int i, j, l, t;
367 367
368 if (clist[c[k]].y < y) /* quick look for typical case */ 368 if (clist[c[k]].y < y) /* quick look for typical case */
369 return (k + 1); 369 return k + 1;
370 i = 0; 370 i = 0;
371 j = k + 1; 371 j = k + 1;
372 while (1) { 372 while (1) {
@@ -379,9 +379,9 @@ static int search(int *c, int k, int y)
379 else if (t < y) 379 else if (t < y)
380 i = l; 380 i = l;
381 else 381 else
382 return (l); 382 return l;
383 } 383 }
384 return (l + 1); 384 return l + 1;
385} 385}
386 386
387 387
@@ -428,7 +428,7 @@ static int stone(int *a, int n, int *b, int *c)
428 } 428 }
429 } while ((y = b[++j]) > 0 && numtries < bound); 429 } while ((y = b[++j]) > 0 && numtries < bound);
430 } 430 }
431 return (k); 431 return k;
432} 432}
433 433
434static void unravel(int p) 434static void unravel(int p)
@@ -461,7 +461,7 @@ static int skipline(FILE * f)
461 461
462 for (i = 1; (c = getc(f)) != '\n' && c != EOF; i++) 462 for (i = 1; (c = getc(f)) != '\n' && c != EOF; i++)
463 continue; 463 continue;
464 return (i); 464 return i;
465} 465}
466 466
467 467
@@ -977,7 +977,7 @@ static int diffreg(char *ofile1, char *ofile2, int flags)
977 free(file1); 977 free(file1);
978 if (file2 != ofile2) 978 if (file2 != ofile2)
979 free(file2); 979 free(file2);
980 return (rval); 980 return rval;
981} 981}
982 982
983#if ENABLE_FEATURE_DIFF_DIR 983#if ENABLE_FEATURE_DIFF_DIR