Skip to content

Commit

Permalink
it was right all along...
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Feb 18, 2024
1 parent aa55b54 commit 9884b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/c/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int set_timeout(int sock, int type, uint64_t seconds, uint64_t nanos) {
socklen_t timeout_len = sizeof(struct timeval);
struct timeval timeout;
timeout.tv_sec = (time_t) seconds;
timeout.tv_usec = (__suseconds_t) nanos / 1000;
timeout.tv_usec = (suseconds_t) nanos / 1000;

return setsockopt(sock, SOL_SOCKET, type, &timeout, timeout_len);
}
Expand Down

0 comments on commit 9884b4e

Please sign in to comment.