aboutsummaryrefslogtreecommitdiff
path: root/slirp.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:01:16 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:01:16 +0000
commit527e33ce73c0460186406679b20670ac9ebe6972 (patch)
treedf8a11ced70873338c2fc498a3aba2f32bf7a53d /slirp.c
parent93ebd039aab8b830e0887dd59360f2ba8de75c07 (diff)
downloadslirp-527e33ce73c0460186406679b20670ac9ebe6972.zip
slirp-527e33ce73c0460186406679b20670ac9ebe6972.tar.gz
slirp-527e33ce73c0460186406679b20670ac9ebe6972.tar.bz2
Use const and static as needed, disable unused code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3452 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp.c')
-rw-r--r--slirp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/slirp.c b/slirp.c
index 6b4feb8..41f4ebe 100644
--- a/slirp.c
+++ b/slirp.c
@@ -12,7 +12,9 @@ struct in_addr special_addr;
/* virtual address alias for host */
struct in_addr alias_addr;
-const uint8_t special_ethaddr[6] = { 0x52, 0x54, 0x00, 0x12, 0x35, 0x00 };
+static const uint8_t special_ethaddr[6] = {
+ 0x52, 0x54, 0x00, 0x12, 0x35, 0x00
+};
uint8_t client_ethaddr[6];
@@ -128,7 +130,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
#endif
#ifdef _WIN32
-void slirp_cleanup(void)
+static void slirp_cleanup(void)
{
WSACleanup();
}