소스 검색

civetweb.c: fix ifdef checks for TCP_USER_TIMEOUT

Fix for:

 [src/civetweb.c:7521]: (style) Variable 'uto' is assigned a value
 that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf 10 년 전
부모
커밋
b3a9ea02d0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -7518,7 +7518,9 @@ static int set_sock_timeout(SOCKET sock, int milliseconds)
 #ifdef _WIN32
     DWORD t = milliseconds;
 #else
+#if defined(TCP_USER_TIMEOUT)
     unsigned int uto = (unsigned int)milliseconds;
+#endif
     struct timeval t;
     t.tv_sec = milliseconds / 1000;
     t.tv_usec = (milliseconds * 1000) % 1000000;