summaryrefslogtreecommitdiff
path: root/nuttx/net/icmp/icmp_ping.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-28 18:36:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-28 18:36:09 -0600
commit0f6f5040d16fe89889179941f6ee0ea3762b0eb3 (patch)
treed8b1a6b01f2ef51dececea93ae8ea2d388079e78 /nuttx/net/icmp/icmp_ping.c
parent61d1e30028f08cacd7cd81dc66ce736e39c6620b (diff)
downloadnuttx-0f6f5040d16fe89889179941f6ee0ea3762b0eb3.tar.gz
nuttx-0f6f5040d16fe89889179941f6ee0ea3762b0eb3.tar.bz2
nuttx-0f6f5040d16fe89889179941f6ee0ea3762b0eb3.zip
Rename many functions in net/devif from uip_* to devif_*
Diffstat (limited to 'nuttx/net/icmp/icmp_ping.c')
-rw-r--r--nuttx/net/icmp/icmp_ping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/icmp/icmp_ping.c b/nuttx/net/icmp/icmp_ping.c
index de270cd82..7371f9d31 100644
--- a/nuttx/net/icmp/icmp_ping.c
+++ b/nuttx/net/icmp/icmp_ping.c
@@ -67,8 +67,8 @@
/* Allocate a new ICMP data callback */
-#define icmp_callbackalloc() uip_callbackalloc(&g_echocallback)
-#define icmp_callbackfree(cb) uip_callbackfree(cb, &g_echocallback)
+#define icmp_callback_alloc() devif_callback_alloc(&g_echocallback)
+#define icmp_callback_free(cb) devif_callback_free(cb, &g_echocallback)
/****************************************************************************
* Private Types
@@ -345,7 +345,7 @@ int uip_ping(uip_ipaddr_t addr, uint16_t id, uint16_t seqno,
/* Set up the callback */
- state.png_cb = icmp_callbackalloc();
+ state.png_cb = icmp_callback_alloc();
if (state.png_cb)
{
state.png_cb->flags = UIP_POLL|UIP_ECHOREPLY;
@@ -367,7 +367,7 @@ int uip_ping(uip_ipaddr_t addr, uint16_t id, uint16_t seqno,
nlldbg("Start time: 0x%08x seqno: %d\n", state.png_time, seqno);
net_lockedwait(&state.png_sem);
- icmp_callbackfree(state.png_cb);
+ icmp_callback_free(state.png_cb);
}
net_unlock(save);