source: scripts/patches/net-tools-1.60-miitool-gcc33-1.patch@ ec749f6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ec749f6 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.1 KB
RevLine 
[617118d]1Submitted By: Ronald Hummelink <ronald at hummelink dot xs4all dot nl>
2Date: 2003-08-24
3Initial Package Version: 1.60
4Origin: Ronald Hummelink
5Description: mii-tool.c doesn't compile using gcc 3.3.1 and probably any gcc 3.3.x. This patch fixes a string block to a syntax gcc 3.3 likes.
6
7diff -Naur net-tools-1.60.orig/mii-tool.c net-tools-1.60/mii-tool.c
8--- net-tools-1.60.orig/mii-tool.c 2000-05-21 14:31:17.000000000 +0000
9+++ net-tools-1.60/mii-tool.c 2003-08-24 20:04:38.000000000 +0000
10@@ -379,17 +379,17 @@
11 /*--------------------------------------------------------------------*/
12
13 const char *usage =
14-"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]
15- -V, --version display version information
16- -v, --verbose more verbose output
17- -R, --reset reset MII to poweron state
18- -r, --restart restart autonegotiation
19- -w, --watch monitor for link status changes
20- -l, --log with -w, write events to syslog
21- -A, --advertise=media,... advertise only specified media
22- -F, --force=media force specified media technology
23-media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
24- (to advertise both HD and FD) 100baseTx, 10baseT\n";
25+"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]\n"
26+" -V, --version display version information\n"
27+" -v, --verbose more verbose output\n"
28+" -R, --reset reset MII to poweron state\n"
29+" -r, --restart restart autonegotiation\n"
30+" -w, --watch monitor for link status changes\n"
31+" -l, --log with -w, write events to syslog\n"
32+" -A, --advertise=media,... advertise only specified media\n"
33+" -F, --force=media force specified media technology\n"
34+"media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,\n"
35+" (to advertise both HD and FD) 100baseTx, 10baseT\n";
36
37 int main(int argc, char **argv)
38 {
Note: See TracBrowser for help on using the repository browser.