Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 authored May 2, 2018
1 parent c40a013 commit a9dfb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/arch/linux/net_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int raw_serial::waitfordata(size_t data_count, _u32 timeout, size_t * returned_s
timeout_val.tv_sec = timeout / 1000;
timeout_val.tv_usec = (timeout % 1000) * 1000;

time_t startTime = time((void*)NULL) * 1000;
time_t startTime = time((time_t*)NULL) * 1000;

if ( isOpened() )
{
Expand All @@ -226,7 +226,7 @@ int raw_serial::waitfordata(size_t data_count, _u32 timeout, size_t * returned_s

while ( isOpened() )
{
time_t now = time((void*)NULL) * 1000;
time_t now = time((time_t*)NULL) * 1000;
if ((now - startTime) > timeout) {
return ANS_TIMEOUT;
}
Expand Down

0 comments on commit a9dfb2a

Please sign in to comment.