diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-12 16:55:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-12 16:55:51 +0000 |
commit | 38d56cd5b5e57a2b423f2edf10e3395649b86900 (patch) | |
tree | 6720f50d70411e1efa978dcad17ff8eab00cbffa /nuttx/net/recvfrom.c | |
parent | e8d776e38adc5c672f1bc8a12d5836809e4013e2 (diff) | |
download | px4-nuttx-38d56cd5b5e57a2b423f2edf10e3395649b86900.tar.gz px4-nuttx-38d56cd5b5e57a2b423f2edf10e3395649b86900.tar.bz2 px4-nuttx-38d56cd5b5e57a2b423f2edf10e3395649b86900.zip |
Fix compile error only noted with ZDS
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1449 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/recvfrom.c')
-rw-r--r-- | nuttx/net/recvfrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c index cef2b8996..0d0a24db8 100644 --- a/nuttx/net/recvfrom.c +++ b/nuttx/net/recvfrom.c @@ -70,8 +70,8 @@ #if defined(CONFIG_NET_UDP) || defined(CONFIG_NET_TCP) struct recvfrom_s { -#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) FAR struct socket *rf_sock; /* The parent socket structure */ +#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) uint32 rf_starttime; /* rcv start time for determining timeout */ #endif FAR struct uip_callback_s *rf_cb; /* Reference to callback instance */ @@ -675,10 +675,10 @@ static void recvfrom_init(FAR struct socket *psock, FAR void *buf, size_t len, pstate->rf_buffer = buf; pstate->rf_from = infrom; -#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) /* Set up the start time for the timeout */ pstate->rf_sock = psock; +#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) pstate->rf_starttime = g_system_timer; #endif } |