From c387de52b2a711f05ae2c9c8652e441038289c3d Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sun, 4 Aug 2013 22:38:46 +0200 Subject: Make private functions in core/LAN_discovery.c static --- core/LAN_discovery.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/LAN_discovery.c') diff --git a/core/LAN_discovery.c b/core/LAN_discovery.c index 72e00d32..67cbfe9a 100644 --- a/core/LAN_discovery.c +++ b/core/LAN_discovery.c @@ -29,7 +29,7 @@ /* get the first working broadcast address that's not from "lo" * returns higher than 0 on success * returns 0 on error */ -uint32_t get_broadcast(void) +static uint32_t get_broadcast(void) { /* not sure how many platforms this will * run on, so it's wrapped in __linux for now */ @@ -76,7 +76,7 @@ uint32_t get_broadcast(void) #endif /* Return the broadcast ip */ -IP broadcast_ip() +static IP broadcast_ip() { IP ip; #ifdef __linux @@ -92,7 +92,7 @@ IP broadcast_ip() /*return 0 if ip is a LAN ip return -1 if it is not */ -int LAN_ip(IP ip) +static int LAN_ip(IP ip) { if (ip.c[0] == 127)/* Loopback */ return 0; @@ -107,7 +107,7 @@ int LAN_ip(IP ip) return -1; } -int handle_LANdiscovery(uint8_t *packet, uint32_t length, IP_Port source) +static int handle_LANdiscovery(uint8_t *packet, uint32_t length, IP_Port source) { if (LAN_ip(source.ip) == -1) return 1; -- cgit v1.2.3