summaryrefslogtreecommitdiff
path: root/core/LAN_discovery.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-04 15:22:01 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-04 15:22:01 -0700
commitf6207efef1cf94b6373a5c55cc654deafe63459a (patch)
tree52bcaa444e0a552484b1b619904249dfb8ce6472 /core/LAN_discovery.c
parent5074146ab437ef9c5f4e67b58b6bd7d13fb18b65 (diff)
parent7567e0a1c4a73731856639f3133d9ffa8a771bc0 (diff)
Merge pull request #326 from fhahn/private-functions-static2
Make private functions in core/ 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;