net/utils/net_dsec2tick.c: Rturn type should unsigned int
This commit is contained in:
parent
affc32c9d1
commit
174df6b793
@ -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
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user