Make udp_physical_addr() and udp_protocol_addr() static.

They aren't used outside udp.c

Signed-off-by: Stephan Gatzka <stephan.gatzka@gmail.com>
master
Stephan Gatzka 2014-02-07 17:26:31 +01:00 committed by Richard Cochran
parent 29063a8227
commit 886112e202
1 changed files with 2 additions and 2 deletions

4
udp.c
View File

@ -238,7 +238,7 @@ static void udp_release(struct transport *t)
free(udp);
}
int udp_physical_addr(struct transport *t, uint8_t *addr)
static int udp_physical_addr(struct transport *t, uint8_t *addr)
{
struct udp *udp = container_of(t, struct udp, t);
if (udp->mac_len)
@ -246,7 +246,7 @@ int udp_physical_addr(struct transport *t, uint8_t *addr)
return udp->mac_len;
}
int udp_protocol_addr(struct transport *t, uint8_t *addr)
static int udp_protocol_addr(struct transport *t, uint8_t *addr)
{
struct udp *udp = container_of(t, struct udp, t);
if (udp->ip_len)