diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
commit | 7cbeae30b426e0912d1814c76e6223fb0842a9fc (patch) | |
tree | a18e5e084078df356178ec94987ed828ec669f22 /nuttx/net/send.c | |
parent | ea4461bfe4f667a624055c6a061aaef49e33cace (diff) | |
download | px4-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/send.c')
-rw-r--r-- | nuttx/net/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/send.c b/nuttx/net/send.c index 1b4407db1..ffa689996 100644 --- a/nuttx/net/send.c +++ b/nuttx/net/send.c @@ -290,7 +290,7 @@ static uint16_t send_interrupt(struct uip_driver_s *dev, void *pvconn, /* Update the send time */ #if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) - pstate->snd_time = g_system_timer; + pstate->snd_time = clock_systimer(); #endif } } @@ -463,7 +463,7 @@ ssize_t send(int sockfd, const void *buf, size_t len, int flags) /* Update the initial time for calculating timeouts */ #if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) - state.snd_time = g_system_timer; + state.snd_time = clock_systimer(); #endif /* Set up the callback in the connection */ |