source: ProjectBuilder/projects/netperf/pbconf/2.4.5/netperf/pbpatch/00-netperf-2.4.5-gcc-fix.patch.all@ 828

Last change on this file since 828 was 828, checked in by Bruno Cornec, 15 years ago

r3251@localhost: bruno | 2009-07-12 15:41:19 +0200
Use a correct naming for netperf patch

File size: 1.1 KB
Line 
1--- netperf-2.4.5/src/nettest_bsd.c.fix 2009-06-04 02:31:15.000000000 +0200
2+++ netperf-2.4.5/src/nettest_bsd.c 2009-07-12 11:17:02.000000000 +0200
3@@ -1455,7 +1455,7 @@
4 /* the headers. we know some of it here, but not all, so we will */
5 /* only print the test title here and will print the results */
6 /* titles after the test is finished */
7- fprintf(where,test_name);
8+ fprintf(where,"%s",test_name);
9 address_buf[0] = '\0';
10 inet_ntop(source->ai_family,get_address_address(source),address_buf,sizeof(address_buf));
11 fprintf(where,
12@@ -3126,7 +3126,7 @@
13 case 1:
14 case 2:
15 if (print_headers) {
16- fprintf(where,mss_title);
17+ fprintf(where,"%s",mss_title);
18 }
19 fprintf(where,
20 mss_fmt_0, /* the format string */
21--- netperf-2.4.5/src/nettest_unix.c.fix 2008-07-26 00:22:55.000000000 +0200
22+++ netperf-2.4.5/src/nettest_unix.c 2009-07-12 11:24:36.000000000 +0200
23@@ -1504,7 +1504,7 @@
24 /* STREAM statistics, the alignments of the sends and receives */
25 /* and all that sort of rot... */
26
27- fprintf(where,
28+ fprintf(where, "%s",
29 ksink_fmt);
30 }
31 /* The test is over. Kill the data socket */
Note: See TracBrowser for help on using the repository browser.