From d387c1c83aa1c925045d1854594816afb1b16327 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Fri, 20 Feb 2015 19:35:12 +0100 Subject: [PATCH] PPP, PPPoS, added missing static modifier on pppos_netif_input() --- src/netif/ppp/pppos.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/pppos.c b/src/netif/ppp/pppos.c index aef940b2..fec73a5f 100644 --- a/src/netif/ppp/pppos.c +++ b/src/netif/ppp/pppos.c @@ -61,7 +61,7 @@ static void pppos_recv_config(ppp_pcb *ppp, void *ctx, u32_t accm); static int pppos_ioctl(ppp_pcb *pcb, void *ctx, int cmd, void *arg); #if VJ_SUPPORT static void pppos_vjc_config(ppp_pcb *ppp, void *ctx, int vjcomp, int cidcomp, int maxcid); -err_t pppos_netif_input(ppp_pcb *ppp, void *ctx, struct pbuf *p, u16_t protocol); +static err_t pppos_netif_input(ppp_pcb *ppp, void *ctx, struct pbuf *p, u16_t protocol); #endif /* VJ_SUPPORT */ /* Prototypes for procedures local to this file. */ @@ -787,7 +787,9 @@ pppos_vjc_config(ppp_pcb *ppp, void *ctx, int vjcomp, int cidcomp, int maxcid) ppp->num, vjcomp, cidcomp, maxcid)); } -err_t pppos_netif_input(ppp_pcb *ppp, void *ctx, struct pbuf *p, u16_t protocol) { +static err_t +pppos_netif_input(ppp_pcb *ppp, void *ctx, struct pbuf *p, u16_t protocol) +{ int ret; pppos_pcb *pppos = (pppos_pcb *)ctx;