diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-19 13:02:27 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-19 13:02:27 +0000 |
commit | 14aa06f29c22797bf8bf054afc25a6ef71718734 (patch) | |
tree | 0beba195743109b995cd407bec53e7eb2b010cc5 | |
parent | e2922e42a00b3d247368a2c1f32740771aaae0cb (diff) | |
download | busybox-w32-14aa06f29c22797bf8bf054afc25a6ef71718734.tar.gz busybox-w32-14aa06f29c22797bf8bf054afc25a6ef71718734.tar.bz2 busybox-w32-14aa06f29c22797bf8bf054afc25a6ef71718734.zip |
- do not use non-standard u_int.
- do not use _PATH_DEVNULL gnuism but bb_dev_null.
Thanks to Rich Felker.
-rw-r--r-- | coreutils/diff.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index 92cf35b0a..c9274e64f 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * Sponsored in part by the Defense Advanced Research Projects | 8 | * Sponsored in part by the Defense Advanced Research Projects |
9 | * Agency (DARPA) and Air Force Research Laboratory, Air Force | 9 | * Agency (DARPA) and Air Force Research Laboratory, Air Force |
10 | * Materiel Command, USAF, under agreement number F39502-99-1-0512. | 10 | * Materiel Command, USAF, under agreement number F39502-99-1-0512. |
11 | * | 11 | * |
12 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 12 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
13 | */ | 13 | */ |
14 | 14 | ||
@@ -405,11 +405,11 @@ static int stone(int *a, int n, int *b, int *c) | |||
405 | { | 405 | { |
406 | int i, k, y, j, l; | 406 | int i, k, y, j, l; |
407 | int oldc, tc, oldl; | 407 | int oldc, tc, oldl; |
408 | u_int numtries; | 408 | unsigned int numtries; |
409 | #if ENABLE_FEATURE_DIFF_MINIMAL | 409 | #if ENABLE_FEATURE_DIFF_MINIMAL |
410 | const u_int bound = (cmd_flags & FLAG_d) ? UINT_MAX : MAX(256, isqrt(n)); | 410 | const unsigned int bound = (cmd_flags & FLAG_d) ? UINT_MAX : MAX(256, isqrt(n)); |
411 | #else | 411 | #else |
412 | const u_int bound = MAX(256, isqrt(n)); | 412 | const unsigned int bound = MAX(256, isqrt(n)); |
413 | #endif | 413 | #endif |
414 | k = 0; | 414 | k = 0; |
415 | c[0] = newcand(0, 0, 0); | 415 | c[0] = newcand(0, 0, 0); |
@@ -933,7 +933,7 @@ static int diffreg(char *ofile1, char *ofile2, int flags) | |||
933 | goto closem; | 933 | goto closem; |
934 | 934 | ||
935 | if (flags & D_EMPTY1) | 935 | if (flags & D_EMPTY1) |
936 | f1 = bb_xfopen(_PATH_DEVNULL, "r"); | 936 | f1 = bb_xfopen(bb_dev_null, "r"); |
937 | else { | 937 | else { |
938 | if (strcmp(file1, "-") == 0) | 938 | if (strcmp(file1, "-") == 0) |
939 | f1 = stdin; | 939 | f1 = stdin; |
@@ -942,7 +942,7 @@ static int diffreg(char *ofile1, char *ofile2, int flags) | |||
942 | } | 942 | } |
943 | 943 | ||
944 | if (flags & D_EMPTY2) | 944 | if (flags & D_EMPTY2) |
945 | f2 = bb_xfopen(_PATH_DEVNULL, "r"); | 945 | f2 = bb_xfopen(bb_dev_null, "r"); |
946 | else { | 946 | else { |
947 | if (strcmp(file2, "-") == 0) | 947 | if (strcmp(file2, "-") == 0) |
948 | f2 = stdin; | 948 | f2 = stdin; |