]> git.pld-linux.org Git - packages/iperf3.git/commitdiff
- build fixed
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 16 Feb 2013 21:53:58 +0000 (22:53 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 16 Feb 2013 21:53:58 +0000 (22:53 +0100)
iperf3-Werror.patch [new file with mode: 0644]
iperf3.spec

diff --git a/iperf3-Werror.patch b/iperf3-Werror.patch
new file mode 100644 (file)
index 0000000..dbec207
--- /dev/null
@@ -0,0 +1,48 @@
+--- iperf-3.0b4/src/iperf_api.c~       2010-08-03 01:15:27.000000000 +0200
++++ iperf-3.0b4/src/iperf_api.c        2013-02-16 22:53:05.882124239 +0100
+@@ -48,15 +48,15 @@
+ void
+ usage()
+ {
+-    fprintf(stderr, usage_short);
++    fprintf(stderr, "%s", usage_short);
+ }
+ void
+ usage_long()
+ {
+-    fprintf(stderr, usage_long1);
+-    fprintf(stderr, usage_long2);
++    fprintf(stderr, "%s", usage_long1);
++    fprintf(stderr, "%s", usage_long2);
+ }
+@@ -347,7 +347,7 @@
+                 test->reverse = 1;
+                 break;
+             case 'v':
+-                printf(version);
++                printf("%s", version);
+                 exit(0);
+             case 'h':
+             default:
+@@ -1163,7 +1163,7 @@
+         case DISPLAY_RESULTS:
+             /* print final summary for all intervals */
+-            printf(report_bw_header);
++            printf("%s", report_bw_header);
+             start_time = 0.;
+             sp = SLIST_FIRST(&test->streams);
+@@ -1256,7 +1256,7 @@
+         return;
+     }
+     if (sp == SLIST_FIRST(&test->streams)) {
+-        printf(report_bw_header);
++        printf("%s", report_bw_header);
+     }
+     unit_snprintf(ubuf, UNIT_LEN, (double) (ir->bytes_transferred), 'A');
index a846097ca4468dcdde4bc2fd5b961b3c879ec55c..68807ae3e4f6e9d6f09c2557f6a28e76b041b046 100644 (file)
@@ -11,6 +11,7 @@ License:      BSD-like
 Group:         Networking/Utilities
 Source0:       http://iperf.googlecode.com/files/iperf-%{version}b4.tar.gz
 # Source0-md5: fde024a200b064b54accd1959f7e642e
+Patch0:                %{name}-Werror.patch
 URL:           http://code.google.com/p/iperf/
 BuildRequires: libstdc++-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,6 +29,7 @@ with iperf2.
 
 %prep
 %setup -q -n %{orgname}-%{version}%{beta}
+%patch0 -p1
 
 %build
 %configure
This page took 0.239635 seconds and 4 git commands to generate.