From 85fd18ad643992a9f1d4100c6381c1a110fa8dc2 Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Fri, 6 Apr 2012 00:07:56 +0900 Subject: [PATCH] Fix type of local variable stopSock in RunMiniServer() The variable is declared as SOCKET, but it is used to store return value of int receive_from_stopSock(...). The type was changed in the commit 4b47e6a51d9c7049a862695b68de75699e023551 by mistake. (cherry picked from commit e10bc2ec0ce5d84ef1adf1c90ae80810aab48afe) --- ChangeLog | 9 +++++++++ upnp/src/genlib/miniserver/miniserver.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a657129..3079f1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -332,6 +332,15 @@ Version 1.8.0 Version 1.6.18 ******************************************************************************* +2012-03-26 Yoichi NAKAYAMA + + Fix type of local variable stopSock in RunMiniServer() + + The variable is declared as SOCKET, but it is used to + store return value of int receive_from_stopSock(...). + The type was changed in the commit + 4b47e6a51d9c7049a862695b68de75699e023551 by mistake. + 2012-04-03 Fabrice Fontaine Compilation optimisation diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c index e57a907..af310ca 100644 --- a/upnp/src/genlib/miniserver/miniserver.c +++ b/upnp/src/genlib/miniserver/miniserver.c @@ -377,7 +377,7 @@ static void RunMiniServer( fd_set rdSet; SOCKET maxMiniSock; int ret = 0; - SOCKET stopSock = 0; + int stopSock = 0; maxMiniSock = 0; maxMiniSock = max(maxMiniSock, miniSock->miniServerSock4);