]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commitdiff
Make some variables static
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 1 Oct 2008 19:06:48 +0000 (19:06 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 1 Oct 2008 19:06:48 +0000 (19:06 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5376 c046a42c-6fe2-441c-8c8c-71466251a162

slirp/bootp.c
slirp/ip_icmp.c

index 27220ee2053ad911da96de1fa292d6db3bb9648b..750fae3d052b1516d5d7f59e9ed4d54162cb4150 100644 (file)
@@ -36,7 +36,7 @@ typedef struct {
     uint8_t macaddr[6];
 } BOOTPClient;
 
-BOOTPClient bootp_clients[NB_ADDR];
+static BOOTPClient bootp_clients[NB_ADDR];
 
 const char *bootp_filename;
 
index 2514f9f8314860d70e3b6c40be8420ab4d3114a6..b3d4348bbe912fc6bf3a8fe1d4e7c68225b66c49 100644 (file)
@@ -43,7 +43,7 @@ struct icmpstat icmpstat;
 
 /* 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] = {