scummvm random work
[patches.git] / netstress.patch
CommitLineData
5e993f12 1From rdunlap@xenotime.net Fri Jul 13 16:59:16 2007
2Delivered-To: vapierfilter@gmail.com
3Received: by 10.114.59.18 with SMTP id h18cs257122waa;
4 Fri, 13 Jul 2007 13:55:32 -0700 (PDT)
5Received: by 10.65.251.17 with SMTP id d17mr3739065qbs.1184360131897;
6 Fri, 13 Jul 2007 13:55:31 -0700 (PDT)
7Return-Path: <ltp-list-bounces@lists.sourceforge.net>
8Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
9 by mx.google.com with ESMTP id e10si7683747qbe.2007.07.13.13.55.31;
10 Fri, 13 Jul 2007 13:55:31 -0700 (PDT)
11Received-SPF: neutral (google.com: 140.211.166.183 is neither permitted nor denied by domain of ltp-list-bounces@lists.sourceforge.net)
12Received: by smtp.gentoo.org (Postfix)
13 id BDFED64FA3; Fri, 13 Jul 2007 20:55:30 +0000 (UTC)
14Delivered-To: vapier@gentoo.org
15Received: from localhost (localhost [127.0.0.1])
16 by smtp.gentoo.org (Postfix) with ESMTP id 8F4B364E53
17 for <vapier@gentoo.org>; Fri, 13 Jul 2007 20:55:30 +0000 (UTC)
18X-Virus-Scanned: amavisd-new at gentoo.org
19X-Spam-Score: -2.409
20X-Spam-Level:
21X-Spam-Status: No, score=-2.409 required=5.5 tests=[AWL=0.055,
22 BAYES_00=-2.599, FORGED_RCVD_HELO=0.135]
23Received: from smtp.gentoo.org ([127.0.0.1])
24 by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
25 with ESMTP id D8grg5fy0MsY for <vapier@gentoo.org>;
26 Fri, 13 Jul 2007 20:55:25 +0000 (UTC)
27Received: from lists-outbound.sourceforge.net (lists-outbound.sourceforge.net [66.35.250.225])
28 by smtp.gentoo.org (Postfix) with ESMTP id BCA3B64FA3
29 for <vapier@gentoo.org>; Fri, 13 Jul 2007 20:55:25 +0000 (UTC)
30Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93])
31 by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
32 id 85D7C130C5; Fri, 13 Jul 2007 13:55:25 -0700 (PDT)
33Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]
34 helo=mail.sourceforge.net)
35 by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)
36 id 1I9SAa-0000tB-V2
37 for ltp-list@lists.sourceforge.net; Fri, 13 Jul 2007 13:55:22 -0700
38Received: from xenotime.net ([66.160.160.81])
39 by mail.sourceforge.net with smtp (Exim 4.44) id 1I9SAa-0005N5-Mv
40 for ltp-list@lists.sourceforge.net; Fri, 13 Jul 2007 13:55:20 -0700
41Received: from midway.site ([71.117.236.25]) by xenotime.net for
42 <ltp-list@lists.sourceforge.net>; Fri, 13 Jul 2007 13:55:16 -0700
43Date: Fri, 13 Jul 2007 13:59:16 -0700
44From: Randy Dunlap <rdunlap@xenotime.net>
45To: ltp-list@lists.sourceforge.net
46Message-Id: <20070713135916.ded7073e.rdunlap@xenotime.net>
47Organization: YPO4
48X-Mailer: Sylpheed 2.4.2 (GTK+ 2.8.10; x86_64-unknown-linux-gnu)
49Mime-Version: 1.0
50Subject: [LTP] [patch] fix net-stress printf format warnings
51X-BeenThere: ltp-list@lists.sourceforge.net
52X-Mailman-Version: 2.1.8
53Precedence: list
54List-Id: Linux Test Project General Discussions
55 <ltp-list.lists.sourceforge.net>
56List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/ltp-list>,
57 <mailto:ltp-list-request@lists.sourceforge.net?subject=unsubscribe>
58List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=ltp-list>
59List-Post: <mailto:ltp-list@lists.sourceforge.net>
60List-Help: <mailto:ltp-list-request@lists.sourceforge.net?subject=help>
61List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/ltp-list>,
62 <mailto:ltp-list-request@lists.sourceforge.net?subject=subscribe>
63Content-Type: text/plain;
64 charset="us-ascii"
65Content-Transfer-Encoding: 7bit
66Sender: ltp-list-bounces@lists.sourceforge.net
67Errors-To: ltp-list-bounces@lists.sourceforge.net
68Status: R
69X-Status: NC
70X-KMail-EncryptionState:
71X-KMail-SignatureState:
72X-KMail-MDN-Sent:
73
74Fix printf format warnings:
75
76ns-tcpserver.c:194: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
77ns-tcpserver.c:496: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
78
79ns-mcast_receiver.c:417: warning: format '%d' expects type 'int', but argument 3 has type 'ssize_t'
80
81ns-igmp_querier.c:440: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'
82
83ns-mcast_join.c:404: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'
84
85---
86 testcases/network/stress/ns-tools/ns-igmp_querier.c | 2 +-
87 testcases/network/stress/ns-tools/ns-mcast_join.c | 2 +-
88 testcases/network/stress/ns-tools/ns-mcast_receiver.c | 2 +-
89 testcases/network/stress/ns-tools/ns-tcpserver.c | 4 ++--
90 4 files changed, 5 insertions(+), 5 deletions(-)
91
92--- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-tcpserver.c
93+++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-tcpserver.c
94@@ -190,7 +190,7 @@ delete_zombies(struct server_info *info_
95 if (status != EXIT_SUCCESS) {
96 ++info_p->lost_connection;
97 if (debug)
98- fprintf (stderr, "The number of lost conncections is %d\n",
99+ fprintf (stderr, "The number of lost conncections is %zu\n",
100 info_p->lost_connection);
101 }
102 }
103@@ -493,7 +493,7 @@ handle_client(struct server_info *info_p
104 if (info_p->max_connection < info_p->current_connection) {
105 info_p->max_connection = info_p->current_connection;
106 if (debug)
107- fprintf (stderr, "The maximum connection is updated. The number is %d.\n", info_p->max_connection);
108+ fprintf (stderr, "The maximum connection is updated. The number is %zu.\n", info_p->max_connection);
109 }
110 delete_zombies(info_p);
111 }
112--- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-igmp_querier.c
113+++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-igmp_querier.c
114@@ -437,7 +437,7 @@ send_query(struct igmp_info *info_p)
115 start_time = time(NULL);
116 query_size = MY_IGMPV3_QUERY_SIZE(ntohs(info_p->query->nsrcs));
117 if (debug)
118- fprintf (stderr, "query size is %u\n", query_size);
119+ fprintf (stderr, "query size is %zu\n", query_size);
120
121 for(;;) {
122 retval = sendto(sd, info_p->query, query_size, 0,
123--- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-mcast_join.c
124+++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-mcast_join.c
125@@ -401,7 +401,7 @@ join_group(void)
126 freeaddrinfo(maddr_info);
127 }
128
129- fprintf(stdout, "%u groups\n", num_group);
130+ fprintf(stdout, "%zu groups\n", num_group);
131 fflush(stdout);
132
133 /* Become a daemon for the next step in shell script */
134--- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-mcast_receiver.c
135+++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-mcast_receiver.c
136@@ -414,7 +414,7 @@ receive_mcast(struct mcast_rcv_info *inf
137 if (errno != EAGAIN)
138 fatal_error("recvfrom()");
139 } else if (debug)
140- fprintf(stderr, "received %d byte message\n", msglen);
141+ fprintf(stderr, "received %zd byte message\n", msglen);
142
143 if (info_p->timeout)
144 if (info_p->timeout < difftime(time(NULL), start_time))
145
146-------------------------------------------------------------------------
147This SF.net email is sponsored by DB2 Express
148Download DB2 Express C - the FREE version of DB2 express and take
149control of your XML. No limits. Just data. Click to get it now.
150http://sourceforge.net/powerbar/db2/
151_______________________________________________
152Ltp-list mailing list
153Ltp-list@lists.sourceforge.net
154https://lists.sourceforge.net/lists/listinfo/ltp-list
155