source: scripts/patches/net-tools-1.60-gcc4_fixes-1.patch@ 2983838

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2983838 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: 991 bytes
RevLine 
[617118d]1Fixes "error: label at end of compound statement" issues
2diff -uNr net-tools-1.60-orig/hostname.c net-tools-1.60/hostname.c
3--- net-tools-1.60-orig/hostname.c 2001-04-09 03:04:23.000000000 +1000
4+++ net-tools-1.60/hostname.c 2005-04-23 12:10:31.000000000 +1000
5@@ -98,6 +98,7 @@
6 fprintf(stderr, _("%s: name too long\n"), program_name);
7 break;
8 default:
9+ ;
10 }
11 exit(1);
12 };
13@@ -117,6 +118,7 @@
14 fprintf(stderr, _("%s: name too long\n"), program_name);
15 break;
16 default:
17+ ;
18 }
19 exit(1);
20 };
21@@ -174,6 +176,7 @@
22 printf("%s\n", hp->h_name);
23 break;
24 default:
25+ ;
26 }
27 }
28
29diff -uNr net-tools-1.60-orig/lib/inet_sr.c net-tools-1.60/lib/inet_sr.c
30--- net-tools-1.60-orig/lib/inet_sr.c 2000-02-21 08:46:45.000000000 +1100
31+++ net-tools-1.60/lib/inet_sr.c 2005-04-23 12:09:17.000000000 +1000
32@@ -105,6 +105,7 @@
33 case 2:
34 isnet = 0; break;
35 default:
36+ ;
37 }
38
39 /* Fill in the other fields. */
Note: See TracBrowser for help on using the repository browser.