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

This commit is contained in:
Xiang Xiao 2020-01-30 16:07:19 +08:00 committed by Gregory Nutt
parent affc32c9d1
commit 174df6b793
2 changed files with 3 additions and 4 deletions

View File

@ -40,6 +40,8 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/clock.h> #include <nuttx/clock.h>
#include "utils/utils.h"
/**************************************************************************** /****************************************************************************
* Public Functions * 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 /* 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 * value is the number of clock ticks per second; decisecs argument is the

View File

@ -39,10 +39,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/socket.h>
#include <sys/time.h> #include <sys/time.h>
#include <stdint.h>
#include <errno.h>
#include <nuttx/clock.h> #include <nuttx/clock.h>