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
parent
29063a8227
commit
886112e202
4
udp.c
4
udp.c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue