summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.c
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2013-08-04 22:38:46 +0200
committerFlorian Hahn <flo@fhahn.com>2013-08-04 23:05:35 +0200
commitc387de52b2a711f05ae2c9c8652e441038289c3d (patch)
tree8cf1baee695666d0889e294f4f23820ec654b278 /core/LAN_discovery.c
parent2a9fedc08f4ebaa210f94041a99eb6d11c0ce45c (diff)
Make private functions in core/LAN_discovery.c static
Diffstat (limited to 'core/LAN_discovery.c')
-rw-r--r--core/LAN_discovery.c8
1 files changed, 4 insertions, 4 deletions
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 @@
29/* get the first working broadcast address that's not from "lo" 29/* get the first working broadcast address that's not from "lo"
30 * returns higher than 0 on success 30 * returns higher than 0 on success
31 * returns 0 on error */ 31 * returns 0 on error */
32uint32_t get_broadcast(void) 32static uint32_t get_broadcast(void)
33{ 33{
34 /* not sure how many platforms this will 34 /* not sure how many platforms this will
35 * run on, so it's wrapped in __linux for now */ 35 * run on, so it's wrapped in __linux for now */
@@ -76,7 +76,7 @@ uint32_t get_broadcast(void)
76#endif 76#endif
77 77
78/* Return the broadcast ip */ 78/* Return the broadcast ip */
79IP broadcast_ip() 79static IP broadcast_ip()
80{ 80{
81 IP ip; 81 IP ip;
82 #ifdef __linux 82 #ifdef __linux
@@ -92,7 +92,7 @@ IP broadcast_ip()
92 92
93/*return 0 if ip is a LAN ip 93/*return 0 if ip is a LAN ip
94 return -1 if it is not */ 94 return -1 if it is not */
95int LAN_ip(IP ip) 95static int LAN_ip(IP ip)
96{ 96{
97 if (ip.c[0] == 127)/* Loopback */ 97 if (ip.c[0] == 127)/* Loopback */
98 return 0; 98 return 0;
@@ -107,7 +107,7 @@ int LAN_ip(IP ip)
107 return -1; 107 return -1;
108} 108}
109 109
110int handle_LANdiscovery(uint8_t *packet, uint32_t length, IP_Port source) 110static int handle_LANdiscovery(uint8_t *packet, uint32_t length, IP_Port source)
111{ 111{
112 if (LAN_ip(source.ip) == -1) 112 if (LAN_ip(source.ip) == -1)
113 return 1; 113 return 1;