summaryrefslogtreecommitdiff
path: root/nuttx/net/recvfrom.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-13 21:44:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-13 21:44:24 +0000
commit7cbeae30b426e0912d1814c76e6223fb0842a9fc (patch)
treea18e5e084078df356178ec94987ed828ec669f22 /nuttx/net/recvfrom.c
parentea4461bfe4f667a624055c6a061aaef49e33cace (diff)
downloadpx4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.gz
px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.bz2
px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.zip
Macro clock_systimer replaces direct access to g_system_timer variable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3500 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/recvfrom.c')
-rw-r--r--nuttx/net/recvfrom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c
index c35937cce..335e2b322 100644
--- a/nuttx/net/recvfrom.c
+++ b/nuttx/net/recvfrom.c
@@ -415,7 +415,7 @@ static uint16_t recvfrom_tcpinterrupt(struct uip_driver_s *dev, void *conn,
*/
#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK)
- pstate->rf_starttime = g_system_timer;
+ pstate->rf_starttime = clock_systimer();
#endif
}
@@ -679,7 +679,7 @@ static void recvfrom_init(FAR struct socket *psock, FAR void *buf, size_t len,
pstate->rf_sock = psock;
#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK)
- pstate->rf_starttime = g_system_timer;
+ pstate->rf_starttime = clock_systimer();
#endif
}
#endif /* CONFIG_NET_UDP || CONFIG_NET_TCP */