From d6a5307270f3f3b38aef1534c8adfc5ecdea9521 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 11 Dec 2023 03:27:41 +0800 Subject: [PATCH] Fix nuttx/porttimer.c:71:24: error: a function declaration without a prototype is deprecated Signed-off-by: Xiang Xiao --- modbus/nuttx/porttimer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modbus/nuttx/porttimer.c b/modbus/nuttx/porttimer.c index c3115868f..2a68654cf 100644 --- a/modbus/nuttx/porttimer.c +++ b/modbus/nuttx/porttimer.c @@ -68,12 +68,12 @@ bool xMBPortTimersInit(uint16_t usTim1Timerout50us) return xMBPortSerialSetTimeout(ulTimeOut); } -void xMBPortTimersClose() +void xMBPortTimersClose(void) { /* Does not use any hardware resources. */ } -void vMBPortTimerPoll() +void vMBPortTimerPoll(void) { uint32_t ulDeltaMS; struct timeval xTimeCur; @@ -101,7 +101,7 @@ void vMBPortTimerPoll() } } -void vMBPortTimersEnable() +void vMBPortTimersEnable(void) { int res = gettimeofday(&xTimeLast, NULL); @@ -109,7 +109,7 @@ void vMBPortTimersEnable() bTimeoutEnable = true; } -void vMBPortTimersDisable() +void vMBPortTimersDisable(void) { bTimeoutEnable = false; }