You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/01/30 13:39:38 UTC
[incubator-nuttx] 02/03: net_dsec2tick return type should unsigned
int
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr185
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 1a9265e285f17431fb582d1a2e7a2e7b7dba6fe7
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Jan 30 16:07:19 2020 +0800
net_dsec2tick return type should unsigned int
Change-Id: I4b73b691d2a0983d2dd14121bcfe1d4b436fbf5b
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
net/utils/net_dsec2tick.c | 4 +++-
net/utils/net_dsec2timeval.c | 3 ---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/net/utils/net_dsec2tick.c b/net/utils/net_dsec2tick.c
index 258f6cb..7e97965 100644
--- a/net/utils/net_dsec2tick.c
+++ b/net/utils/net_dsec2tick.c
@@ -40,6 +40,8 @@
#include <nuttx/config.h>
#include <nuttx/clock.h>
+#include "utils/utils.h"
+
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -58,7 +60,7 @@
*
****************************************************************************/
-int net_dsec2tick(int dsec)
+unsigned int net_dsec2tick(int dsec)
{
/* Convert the deci-second comparison value to clock ticks. The CLK_TCK
* value is the number of clock ticks per second; decisecs argument is the
diff --git a/net/utils/net_dsec2timeval.c b/net/utils/net_dsec2timeval.c
index 990f1f3..41c48f6 100644
--- a/net/utils/net_dsec2timeval.c
+++ b/net/utils/net_dsec2timeval.c
@@ -39,10 +39,7 @@
#include <nuttx/config.h>
-#include <sys/socket.h>
#include <sys/time.h>
-#include <stdint.h>
-#include <errno.h>
#include <nuttx/clock.h>