aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 19:06:48 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 19:06:48 +0000
commitf7c64080498ebb2d6aa1c988673f53693a9905ea (patch)
treeaa0068c26bb7e8ae8ec2b4c3b1cdcbd1663465e2
parentc4a230c42f533ed9d2a06550d3ea9ef2a1cf12f4 (diff)
downloadslirp-f7c64080498ebb2d6aa1c988673f53693a9905ea.zip
slirp-f7c64080498ebb2d6aa1c988673f53693a9905ea.tar.gz
slirp-f7c64080498ebb2d6aa1c988673f53693a9905ea.tar.bz2
Make some variables static
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5376 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--bootp.c2
-rw-r--r--ip_icmp.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/bootp.c b/bootp.c
index 455b192..49f1019 100644
--- a/bootp.c
+++ b/bootp.c
@@ -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;
diff --git a/ip_icmp.c b/ip_icmp.c
index 658a432..02b11b4 100644
--- a/ip_icmp.c
+++ b/ip_icmp.c
@@ -43,8 +43,9 @@ 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] = {