From 174df6b79328f4751b69748bc85bc1431e5db6e4 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 30 Jan 2020 16:07:19 +0800 Subject: [PATCH] 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 258f6cbfa1..7e97965b91 100644 --- a/net/utils/net_dsec2tick.c +++ b/net/utils/net_dsec2tick.c @@ -40,6 +40,8 @@ #include #include +#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 990f1f3a5b..41c48f6e86 100644 --- a/net/utils/net_dsec2timeval.c +++ b/net/utils/net_dsec2timeval.c @@ -39,10 +39,7 @@ #include -#include #include -#include -#include #include