From 6455ac6eea390766ffc1aa4c269af43144f62b11 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Sat, 1 Sep 2007 16:58:58 +0000 Subject: [PATCH] Changed the calls to virtualDirCallback.open(filename, UPNP_WRITE) to (virtualDirCallback.open)(filename, UPNP_WRITE) (notice the parenthesis) due to a change in glibc that produces compilation errors. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@223 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 6 ++++++ upnp/src/genlib/net/http/httpreadwrite.c | 2 +- upnp/src/genlib/net/http/webserver.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8451629..038835f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ Version 1.6.1 ******************************************************************************* +2007-08-28 Marcelo Jimenez + * Changed the calls to virtualDirCallback.open(filename, UPNP_WRITE) + to (virtualDirCallback.open)(filename, UPNP_WRITE) (notice the + parenthesis) due to a change in glibc that produces compilation + errors. + 2007-08-28 Marcelo Jimenez * Initialization of the "randomness" struct so that valgrind does not complain. diff --git a/upnp/src/genlib/net/http/httpreadwrite.c b/upnp/src/genlib/net/http/httpreadwrite.c index d144441..d828ccd 100644 --- a/upnp/src/genlib/net/http/httpreadwrite.c +++ b/upnp/src/genlib/net/http/httpreadwrite.c @@ -349,7 +349,7 @@ http_SendMessage( IN SOCKINFO * info, filename = ( char * )va_arg( argp, char * ); if( Instr && Instr->IsVirtualFile ) - Fp = virtualDirCallback.open( filename, UPNP_READ ); + Fp = (virtualDirCallback.open)( filename, UPNP_READ ); else Fp = fopen( filename, "rb" ); diff --git a/upnp/src/genlib/net/http/webserver.c b/upnp/src/genlib/net/http/webserver.c index 4d718ee..692992e 100644 --- a/upnp/src/genlib/net/http/webserver.c +++ b/upnp/src/genlib/net/http/webserver.c @@ -1532,7 +1532,7 @@ http_RecvPostMessage( http_parser_t * parser, if( Instr && Instr->IsVirtualFile ) { - Fp = virtualDirCallback.open( filename, UPNP_WRITE ); + Fp = (virtualDirCallback.open)( filename, UPNP_WRITE ); if( Fp == NULL ) { return HTTP_INTERNAL_SERVER_ERROR; }