Magellan Linux

Contents of /trunk/net-tools/patches/net-tools-1.60-miitool-gcc33-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years, 5 months ago) by niro
File size: 2111 byte(s)
-import

1 Submitted By: Ronald Hummelink <ronald at hummelink dot xs4all dot nl>
2 Date: 2003-08-24
3 Initial Package Version: 1.60
4 Origin: Ronald Hummelink
5 Description: 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
7 diff -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 {