diff options
-rw-r--r-- | coreutils/libcoreutils/coreutils.h | 5 | ||||
-rw-r--r-- | coreutils/uniq.c | 16 | ||||
-rw-r--r-- | networking/ip.c | 9 | ||||
-rw-r--r-- | networking/ipaddr.c | 9 | ||||
-rw-r--r-- | networking/iplink.c | 9 | ||||
-rw-r--r-- | networking/iproute.c | 9 | ||||
-rw-r--r-- | networking/iptunnel.c | 9 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 11 |
8 files changed, 24 insertions, 53 deletions
diff --git a/coreutils/libcoreutils/coreutils.h b/coreutils/libcoreutils/coreutils.h index eabca8204..b93731bc7 100644 --- a/coreutils/libcoreutils/coreutils.h +++ b/coreutils/libcoreutils/coreutils.h | |||
@@ -1,3 +1,7 @@ | |||
1 | /* | ||
2 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
3 | */ | ||
4 | |||
1 | #ifndef COREUTILS_H | 5 | #ifndef COREUTILS_H |
2 | #define COREUTILS_H 1 | 6 | #define COREUTILS_H 1 |
3 | 7 | ||
@@ -7,6 +11,5 @@ extern int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf); | |||
7 | extern int cp_mv_stat(const char *fn, struct stat *fn_stat); | 11 | extern int cp_mv_stat(const char *fn, struct stat *fn_stat); |
8 | 12 | ||
9 | extern mode_t getopt_mk_fifo_nod(int argc, char **argv); | 13 | extern mode_t getopt_mk_fifo_nod(int argc, char **argv); |
10 | extern FILE *xgetoptfile_sort_uniq(char **argv, const char *mode); | ||
11 | 14 | ||
12 | #endif | 15 | #endif |
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 93ae169f4..be3d75c3a 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -4,20 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org> | 5 | * Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | * | ||
21 | */ | 8 | */ |
22 | 9 | ||
23 | /* BB_AUDIT SUSv3 compliant */ | 10 | /* BB_AUDIT SUSv3 compliant */ |
@@ -29,7 +16,6 @@ | |||
29 | #include <ctype.h> | 16 | #include <ctype.h> |
30 | #include <unistd.h> | 17 | #include <unistd.h> |
31 | #include "busybox.h" | 18 | #include "busybox.h" |
32 | #include "libcoreutils/coreutils.h" | ||
33 | 19 | ||
34 | static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4"; | 20 | static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4"; |
35 | 21 | ||
diff --git a/networking/ip.c b/networking/ip.c index cfdbf8b96..9250484aa 100644 --- a/networking/ip.c +++ b/networking/ip.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ip.c "ip" utility frontend. | 2 | * ip.c "ip" utility frontend. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -23,8 +20,8 @@ | |||
23 | #include <netinet/in.h> | 20 | #include <netinet/in.h> |
24 | #include <string.h> | 21 | #include <string.h> |
25 | 22 | ||
26 | #include "./libiproute/utils.h" | 23 | #include "libiproute/utils.h" |
27 | #include "./libiproute/ip_common.h" | 24 | #include "libiproute/ip_common.h" |
28 | 25 | ||
29 | #include "busybox.h" | 26 | #include "busybox.h" |
30 | 27 | ||
diff --git a/networking/ipaddr.c b/networking/ipaddr.c index 7826194c9..431755770 100644 --- a/networking/ipaddr.c +++ b/networking/ipaddr.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ip.c "ip" utility frontend. | 2 | * ip.c "ip" utility frontend. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -14,8 +11,8 @@ | |||
14 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses | 11 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses |
15 | */ | 12 | */ |
16 | 13 | ||
17 | #include "./libiproute/utils.h" | 14 | #include "libiproute/utils.h" |
18 | #include "./libiproute/ip_common.h" | 15 | #include "libiproute/ip_common.h" |
19 | 16 | ||
20 | #include "busybox.h" | 17 | #include "busybox.h" |
21 | 18 | ||
diff --git a/networking/iplink.c b/networking/iplink.c index 7207e176c..2f13aff68 100644 --- a/networking/iplink.c +++ b/networking/iplink.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ip.c "ip" utility frontend. | 2 | * ip.c "ip" utility frontend. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -14,8 +11,8 @@ | |||
14 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses | 11 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses |
15 | */ | 12 | */ |
16 | 13 | ||
17 | #include "./libiproute/utils.h" | 14 | #include "libiproute/utils.h" |
18 | #include "./libiproute/ip_common.h" | 15 | #include "libiproute/ip_common.h" |
19 | 16 | ||
20 | #include "busybox.h" | 17 | #include "busybox.h" |
21 | 18 | ||
diff --git a/networking/iproute.c b/networking/iproute.c index d049a87c4..ce58d62e2 100644 --- a/networking/iproute.c +++ b/networking/iproute.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ip.c "ip" utility frontend. | 2 | * ip.c "ip" utility frontend. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -14,8 +11,8 @@ | |||
14 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses | 11 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses |
15 | */ | 12 | */ |
16 | 13 | ||
17 | #include "./libiproute/utils.h" | 14 | #include "libiproute/utils.h" |
18 | #include "./libiproute/ip_common.h" | 15 | #include "libiproute/ip_common.h" |
19 | 16 | ||
20 | #include "busybox.h" | 17 | #include "busybox.h" |
21 | 18 | ||
diff --git a/networking/iptunnel.c b/networking/iptunnel.c index f2b2e8a77..feff1fc9c 100644 --- a/networking/iptunnel.c +++ b/networking/iptunnel.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ip.c "ip" utility frontend. | 2 | * ip.c "ip" utility frontend. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -14,8 +11,8 @@ | |||
14 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses | 11 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses |
15 | */ | 12 | */ |
16 | 13 | ||
17 | #include "./libiproute/utils.h" | 14 | #include "libiproute/utils.h" |
18 | #include "./libiproute/ip_common.h" | 15 | #include "libiproute/ip_common.h" |
19 | 16 | ||
20 | #include "busybox.h" | 17 | #include "busybox.h" |
21 | 18 | ||
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index fabab5b7a..cc229c206 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * iproute.c "ip route". | 2 | * iproute.c "ip route". |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | * | 5 | * |
9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
10 | * | 7 | * |
@@ -588,7 +585,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
588 | } | 585 | } |
589 | 586 | ||
590 | if (flush) { | 587 | if (flush) { |
591 | int round = 0; | 588 | int _round = 0; |
592 | char flushb[4096-512]; | 589 | char flushb[4096-512]; |
593 | 590 | ||
594 | if (filter.tb == -1) { | 591 | if (filter.tb == -1) { |
@@ -614,14 +611,14 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
614 | return -1; | 611 | return -1; |
615 | } | 612 | } |
616 | if (filter.flushed == 0) { | 613 | if (filter.flushed == 0) { |
617 | if (round == 0) { | 614 | if (_round == 0) { |
618 | if (filter.tb != -1 || do_ipv6 == AF_INET6) | 615 | if (filter.tb != -1 || do_ipv6 == AF_INET6) |
619 | fprintf(stderr, "Nothing to flush.\n"); | 616 | fprintf(stderr, "Nothing to flush.\n"); |
620 | } | 617 | } |
621 | fflush(stdout); | 618 | fflush(stdout); |
622 | return 0; | 619 | return 0; |
623 | } | 620 | } |
624 | round++; | 621 | _round++; |
625 | if (flush_update() < 0) | 622 | if (flush_update() < 0) |
626 | exit(1); | 623 | exit(1); |
627 | } | 624 | } |