source: scripts/patches/net-tools-1.60-gcc34-2.patch@ 78d98fc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 78d98fc was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[617118d]1Submitted By: Zack Winkles <winkie AT linuxfromscratch DOT org>
2Date: 2004-04-09
3Initial Package Version: 1.60
4Origin: N/A
5Description: Fix some occurrences of syntax that GCC 3.4 doesn't like.
6
7diff -Naur net-tools-1.60.orig/hostname.c net-tools-1.60/hostname.c
8--- net-tools-1.60.orig/hostname.c 2001-04-08 13:04:23.000000000 -0400
9+++ net-tools-1.60/hostname.c 2004-04-09 13:07:20.229598908 -0400
10@@ -98,6 +98,7 @@
11 fprintf(stderr, _("%s: name too long\n"), program_name);
12 break;
13 default:
14+ ((void)0);
15 }
16 exit(1);
17 };
18@@ -117,6 +118,7 @@
19 fprintf(stderr, _("%s: name too long\n"), program_name);
20 break;
21 default:
22+ ((void)0);
23 }
24 exit(1);
25 };
26@@ -174,6 +176,7 @@
27 printf("%s\n", hp->h_name);
28 break;
29 default:
30+ ((void)0);
31 }
32 }
33
34diff -Naur net-tools-1.60.orig/lib/inet_sr.c net-tools-1.60/lib/inet_sr.c
35--- net-tools-1.60.orig/lib/inet_sr.c 2000-02-20 16:46:45.000000000 -0500
36+++ net-tools-1.60/lib/inet_sr.c 2004-04-09 13:07:20.229598908 -0400
37@@ -105,6 +105,7 @@
38 case 2:
39 isnet = 0; break;
40 default:
41+ ((void)0);
42 }
43
44 /* Fill in the other fields. */
45diff -Naur net-tools-1.60.orig/mii-tool.c net-tools-1.60/mii-tool.c
46--- net-tools-1.60.orig/mii-tool.c 2000-05-21 10:31:17.000000000 -0400
47+++ net-tools-1.60/mii-tool.c 2004-04-09 13:07:18.090313038 -0400
48@@ -379,17 +379,17 @@
49 /*--------------------------------------------------------------------*/
50
51 const char *usage =
52-"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]
53- -V, --version display version information
54- -v, --verbose more verbose output
55- -R, --reset reset MII to poweron state
56- -r, --restart restart autonegotiation
57- -w, --watch monitor for link status changes
58- -l, --log with -w, write events to syslog
59- -A, --advertise=media,... advertise only specified media
60- -F, --force=media force specified media technology
61-media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
62- (to advertise both HD and FD) 100baseTx, 10baseT\n";
63+"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]\n"
64+" -V, --version display version information\n"
65+" -v, --verbose more verbose output\n"
66+" -R, --reset reset MII to poweron state\n"
67+" -r, --restart restart autonegotiation\n"
68+" -w, --watch monitor for link status changes\n"
69+" -l, --log with -w, write events to syslog\n"
70+" -A, --advertise=media,... advertise only specified media\n"
71+" -F, --force=media force specified media technology\n"
72+"media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,\n"
73+" (to advertise both HD and FD) 100baseTx, 10baseT\n";
74
75 int main(int argc, char **argv)
76 {
Note: See TracBrowser for help on using the repository browser.