/[packages]/cauldron/net-tools/current/SOURCES/net-tools-1.60-format_not_a_string_literal_and_no_format_arguments.diff
ViewVC logotype

Contents of /cauldron/net-tools/current/SOURCES/net-tools-1.60-format_not_a_string_literal_and_no_format_arguments.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (show annotations) (download)
Fri Jan 7 23:30:25 2011 UTC (13 years, 2 months ago) by tmb
File size: 2957 byte(s)
imported package net-tools
1 diff -Naurp net-tools-1.60/ether-wake.c net-tools-1.60.oden/ether-wake.c
2 --- net-tools-1.60/ether-wake.c 2008-12-22 12:20:51.000000000 +0100
3 +++ net-tools-1.60.oden/ether-wake.c 2008-12-22 12:21:08.000000000 +0100
4 @@ -131,7 +131,7 @@ int main(int argc, char *argv[])
5 case 'D': debug++; break;
6 case 'i': ifname = optarg; break;
7 case 'p': get_wol_pw(optarg); break;
8 - case 'u': printf(usage_msg); return 0;
9 + case 'u': printf("%s", usage_msg); return 0;
10 case 'v': verbose++; break;
11 case 'V': do_version++; break;
12 case '?':
13 @@ -140,7 +140,7 @@ int main(int argc, char *argv[])
14 if (verbose || do_version)
15 printf("%s\n", version_msg);
16 if (errflag) {
17 - fprintf(stderr, brief_usage_msg);
18 + fprintf(stderr, "%s", brief_usage_msg);
19 return 3;
20 }
21
22 diff -Naurp net-tools-1.60/mii-diag.c net-tools-1.60.oden/mii-diag.c
23 --- net-tools-1.60/mii-diag.c 2008-12-22 12:20:51.000000000 +0100
24 +++ net-tools-1.60.oden/mii-diag.c 2008-12-22 12:21:08.000000000 +0100
25 @@ -210,7 +210,7 @@ main(int argc, char **argv)
26 }
27
28 if (verbose || opt_version)
29 - printf(version);
30 + printf("%s", version);
31
32 /* Open a basic socket. */
33 if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
34 @@ -538,7 +538,7 @@ int show_basic_mii(long ioaddr, int phy_
35 bmcr & 0x0100 ? "full":"half");
36 for (i = 0; i < 9; i++)
37 if (bmcr & (0x0080<<i))
38 - printf(bmcr_bits[i]);
39 + printf("%s", bmcr_bits[i]);
40
41 new_bmsr = mdio_read(ioaddr, phy_id, 1);
42 if ((bmsr & 0x0016) == 0x0004)
43 diff -Naurp net-tools-1.60/mii-tool.c net-tools-1.60.oden/mii-tool.c
44 --- net-tools-1.60/mii-tool.c 2008-12-22 12:20:50.000000000 +0100
45 +++ net-tools-1.60.oden/mii-tool.c 2008-12-22 12:21:08.000000000 +0100
46 @@ -241,7 +241,7 @@ int show_basic_mii(int sock, int phy_id)
47
48 if (opt_watch) {
49 if (opt_log) {
50 - syslog(LOG_INFO, buf);
51 + syslog(LOG_INFO, "%s", buf);
52 } else {
53 char s[20];
54 time_t t = time(NULL);
55 @@ -419,7 +419,7 @@ int main(int argc, char **argv)
56 }
57
58 if (opt_version)
59 - printf(version);
60 + printf("%s", version);
61
62 /* Open a basic socket. */
63 if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
64 diff -Naurp net-tools-1.60/rarp.c net-tools-1.60.oden/rarp.c
65 --- net-tools-1.60/rarp.c 2001-04-08 19:05:05.000000000 +0200
66 +++ net-tools-1.60.oden/rarp.c 2008-12-22 12:21:08.000000000 +0100
67 @@ -225,7 +225,7 @@ int main(int argc, char **argv)
68 case 'h':
69 usage();
70 case 'V':
71 - fprintf(stderr, version_string);
72 + fprintf(stderr, "%s", version_string);
73 exit(E_VERSION);
74 break;
75 case 'v':
76 diff -Naurp net-tools-1.60/slattach.c net-tools-1.60.oden/slattach.c
77 --- net-tools-1.60/slattach.c 2000-10-28 12:59:41.000000000 +0200
78 +++ net-tools-1.60.oden/slattach.c 2008-12-22 12:21:08.000000000 +0100
79 @@ -565,7 +565,7 @@ usage(void)
80 "[-c cmd] [-s speed] [-p protocol] tty | -\n"
81 " slattach -V | --version\n";
82
83 - fprintf(stderr, usage_msg);
84 + fprintf(stderr, "%s", usage_msg);
85 exit(1);
86 }
87

  ViewVC Help
Powered by ViewVC 1.1.30