From 8eac74ee500fcdc29997e14f0b2119ee1b2c0be0 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Sat, 20 Mar 2010 21:27:51 +0000 Subject: [PATCH] SF Patch Tracker [ 2973319 ] Problem in commit 499 Submitted By: Nick Leverton (leveret) Afraid that this doesn't compile, it seems retval should be retVal in two places. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@500 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 6 ++++++ upnp/src/api/upnpapi.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a697e05..186eff8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ Version 1.8.0 ******************************************************************************* +2010-03-16 Marcelo Jimenez + * SF Patch Tracker [ 2973319 ] Problem in commit 499 + Submitted By: Nick Leverton (leveret) + Afraid that this doesn't compile, it seems retval should be retVal in two + places. + 2010-03-16 Marcelo Jimenez * Fix for the ithread_mutex_unlock() logic in UpnpInit(). Thanks for Nicholas Kraft. diff --git a/upnp/src/api/upnpapi.c b/upnp/src/api/upnpapi.c index 3bb12fa..ee18b4d 100644 --- a/upnp/src/api/upnpapi.c +++ b/upnp/src/api/upnpapi.c @@ -207,7 +207,7 @@ int UpnpInit(const char *HostIP, unsigned short DestPort) /* Check if we're already initialized. */ if (UpnpSdkInit == 1) { - retval = UPNP_E_INIT; + retVal = UPNP_E_INIT; goto exit_function; } @@ -226,7 +226,7 @@ int UpnpInit(const char *HostIP, unsigned short DestPort) strncpy(gIF_IPV4, HostIP, sizeof(gIF_IPV4)); } else { if( getlocalhostname( gIF_IPV4, sizeof(gIF_IPV4) ) != UPNP_E_SUCCESS ) { - retval = UPNP_E_INIT_FAILED; + retVal = UPNP_E_INIT_FAILED; goto exit_function; } }