source: scripts/patches/net-tools-1.60-gcc34-3.patch@ 520eadc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 520eadc 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]1diff -uNr net-tools-1.60-orig/hostname.c net-tools-1.60/hostname.c
2--- net-tools-1.60-orig/hostname.c 2001-04-09 03:04:23.000000000 +1000
3+++ net-tools-1.60/hostname.c 2005-04-23 12:35:54.000000000 +1000
4@@ -78,6 +78,7 @@
5 fprintf(stderr, _("%s: name too long\n"), program_name);
6 break;
7 default:
8+ ((void)0);
9 }
10 exit(1);
11 }
12@@ -98,6 +99,7 @@
13 fprintf(stderr, _("%s: name too long\n"), program_name);
14 break;
15 default:
16+ ((void)0);
17 }
18 exit(1);
19 };
20@@ -117,6 +119,7 @@
21 fprintf(stderr, _("%s: name too long\n"), program_name);
22 break;
23 default:
24+ ((void)0);
25 }
26 exit(1);
27 };
28@@ -174,6 +177,7 @@
29 printf("%s\n", hp->h_name);
30 break;
31 default:
32+ ((void)0);
33 }
34 }
35
36diff -uNr net-tools-1.60-orig/lib/inet_sr.c net-tools-1.60/lib/inet_sr.c
37--- net-tools-1.60-orig/lib/inet_sr.c 2000-02-21 08:46:45.000000000 +1100
38+++ net-tools-1.60/lib/inet_sr.c 2005-04-23 12:36:29.000000000 +1000
39@@ -105,6 +105,7 @@
40 case 2:
41 isnet = 0; break;
42 default:
43+ ((void)0);
44 }
45
46 /* Fill in the other fields. */
47diff -uNr net-tools-1.60-orig/mii-tool.c net-tools-1.60/mii-tool.c
48--- net-tools-1.60-orig/mii-tool.c 2000-05-22 00:31:17.000000000 +1000
49+++ net-tools-1.60/mii-tool.c 2005-04-23 12:35:06.000000000 +1000
50@@ -379,17 +379,17 @@
51 /*--------------------------------------------------------------------*/
52
53 const char *usage =
54-"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]
55- -V, --version display version information
56- -v, --verbose more verbose output
57- -R, --reset reset MII to poweron state
58- -r, --restart restart autonegotiation
59- -w, --watch monitor for link status changes
60- -l, --log with -w, write events to syslog
61- -A, --advertise=media,... advertise only specified media
62- -F, --force=media force specified media technology
63-media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
64- (to advertise both HD and FD) 100baseTx, 10baseT\n";
65+"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]\n"
66+" -V, --version display version information\n"
67+" -v, --verbose more verbose output\n"
68+" -R, --reset reset MII to poweron state\n"
69+" -r, --restart restart autonegotiation\n"
70+" -w, --watch monitor for link status changes\n"
71+" -l, --log with -w, write events to syslog\n"
72+" -A, --advertise=media,... advertise only specified media\n"
73+" -F, --force=media force specified media technology\n"
74+"media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,\n"
75+" (to advertise both HD and FD) 100baseTx, 10baseT\n";
76
77 int main(int argc, char **argv)
78 {
Note: See TracBrowser for help on using the repository browser.