Discussion:
[Linuxptp-devel] [PATCH] Make udp_physical_addr() and udp_protocol_addr() static.
Stephan Gatzka
2014-02-07 16:26:31 UTC
Permalink
They aren't used outside udp.c

Signed-off-by: Stephan Gatzka <***@gmail.com>
---
udp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/udp.c b/udp.c
index be7f2b7..9628291 100644
--- a/udp.c
+++ b/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)
--
1.8.5.4
Richard Cochran
2014-02-07 18:51:25 UTC
Permalink
Post by Stephan Gatzka
They aren't used outside udp.c
Applied.

Thanks,
Richard

Loading...