Address new file issue by Jenkins and peer feedback on return val of time

pull/3739/head
kaleb-himes 2021-02-10 04:16:34 -07:00
parent 89b97a0fbf
commit 15f9902e94
4 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,6 @@
# vim:ft=automake
# included from Top Level Makefile.am
# All paths should be given relative to the root
EXTRA_DIST+= IDE/VisualDSP/user_settings.h
EXTRA_DIST+= IDE/VisualDSP/wolf_tasks.c

View File

@ -35,8 +35,8 @@ include IDE/M68K/include.am
include IDE/HEXAGON/include.am
include IDE/RISCV/include.am
include IDE/XilinxSDK/include.am
include IDE/VisualDSP/include.am
EXTRA_DIST+= IDE/IAR-EWARM IDE/MDK-ARM IDE/MDK5-ARM IDE/MYSQL IDE/LPCXPRESSO IDE/HEXIWEAR IDE/Espressif IDE/zephyr
EXTRA_DIST+= IDE/OPENSTM32/README.md
EXTRA_DIST+= IDE/Espressif/ESP-IDF/setup_win.bat
EXTRA_DIST+= IDE/VisualDSP

View File

@ -1372,7 +1372,7 @@ end:
{
struct timeval now;
if (FCL_GETTIMEOFDAY(&now, 0) < 0)
return (word32)GETTIME_ERROR;
return WOLFSSL_FAILURE; /* return 0 for failure */
/* Convert to milliseconds number. */
return (word32)(now.tv_sec * 1000 + now.tv_usec / 1000);
@ -1390,7 +1390,7 @@ end:
struct timeval now;
if (gettimeofday(&now, 0) < 0)
return (word32)GETTIME_ERROR;
return WOLFSSL_FAILURE; /* return 0 for failure */
/* Convert to milliseconds number. */
return (word32)(now.tv_sec * 1000 + now.tv_usec / 1000);