net/utils/net_dsec2tick.c: Rturn type should unsigned int

This commit is contained in:
Xiang Xiao
2020-01-30 07:45:14 -06:00
committed by Gregory Nutt
parent affc32c9d1
commit 174df6b793
2 changed files with 3 additions and 4 deletions
+3 -1
View File
@@ -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
-3
View File
@@ -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>