From ed44e8659c74bc2e7e8618ce58920c1540fb2e96 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 11 Aug 2020 13:14:17 +0900 Subject: [PATCH] Remove compile warning message Change-Id: I8d330eefee4cf3418bd427d5f692fdac9ddd6902 Signed-off-by: Hwankyu Jhun --- aul/socket/socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aul/socket/socket.cc b/aul/socket/socket.cc index 1031389..e61f637 100644 --- a/aul/socket/socket.cc +++ b/aul/socket/socket.cc @@ -183,7 +183,7 @@ void Socket::SetTimeout(int timeout_msec) { struct timeval timeout = { .tv_sec = static_cast(timeout_msec / 1000), - .tv_usec = static_cast((timeout_msec % 1000) * 1000) + .tv_usec = static_cast((timeout_msec % 1000) * 1000) }; int ret = setsockopt(fd_, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)); if (ret < 0) -- 2.7.4