This is an automated email from the ASF dual-hosted git repository. gnutt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 174df6b79328f4751b69748bc85bc1431e5db6e4 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Thu Jan 30 16:07:19 2020 +0800 net/utils/net_dsec2tick.c: Rturn type should unsigned int --- 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>