Skip to contentSkip to conversation

[5376] Make some variables static

Qemu-devel Blue Swirl 1 participant 1 message Oct 1, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 5376

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5376
Author:   blueswir1
Date:     2008-10-01 19:06:48 +0000 (Wed, 01 Oct 2008)

Log Message:
-----------
Make some variables static

Modified Paths:
--------------
trunk/slirp/bootp.c
trunk/slirp/ip_icmp.c

Modified: trunk/slirp/bootp.c
===================================================================

slirp/bootp.c +1 -1
@@ -36,7 +36,7 @@
     uint8_t macaddr[6];
 } BOOTPClient;
 
-BOOTPClient bootp_clients[NB_ADDR];
+static BOOTPClient bootp_clients[NB_ADDR];
 
 const char *bootp_filename;
 

Modified: trunk/slirp/ip_icmp.c
===================================================================

slirp/ip_icmp.c +1 -1
@@ -43,7 +43,7 @@
 
 /* The message sent when emulating PING */
 /* Be nice and tell them it's just a pseudo-ping packet */
-const char icmp_ping_msg[] = "This is a pseudo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
+static const char icmp_ping_msg[] = "This is a pseudo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
 
 /* list of actions for icmp_error() on RX of an icmp message */
 static const int icmp_flush[19] = {