mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-22 23:11:15 +00:00
* GSWAdaptors/common/GSWHTTPResponse.c
(GSWHTTPResponse_GetResponse): Move variable declarations to top of block for older compilers. * GSWAdaptors/common/GSWUtil.h (GSWAssert): Ditto. Remove bogus call to GSWLog(). * GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Remove statement from variable declations for older compilers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
13c2125572
commit
f2bebb40b7
4 changed files with 18 additions and 8 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,4 +1,14 @@
|
|||
2004-11-26 David Ayers <d.ayers@inode.at>
|
||||
2005-03-31 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWAdaptors/common/GSWHTTPResponse.c
|
||||
(GSWHTTPResponse_GetResponse): Move variable declarations to top
|
||||
of block for older compilers.
|
||||
* GSWAdaptors/common/GSWUtil.h (GSWAssert): Ditto. Remove bogus
|
||||
call to GSWLog().
|
||||
* GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Remove
|
||||
statement from variable declations for older compilers.
|
||||
|
||||
2005-03-26 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWeb.framework/GSWApplication+Defaults.m (GSWAppClassDummy):
|
||||
Added method declarations to help various compiler versions
|
||||
|
|
|
@ -420,10 +420,11 @@ GSWHTTPResponse_GetResponse(GSWTimeStats *p_pStats,
|
|||
// Content
|
||||
if (pHTTPResponse->uContentLength)
|
||||
{
|
||||
int iReceivedCount=0;
|
||||
pHTTPResponse->pContent=malloc(pHTTPResponse->uContentLength);
|
||||
int iReceivedCount=GSWApp_ReceiveBlock(p_socket,pHTTPResponse->pContent,
|
||||
pHTTPResponse->uContentLength,
|
||||
p_pLogServerData);
|
||||
iReceivedCount=GSWApp_ReceiveBlock(p_socket,pHTTPResponse->pContent,
|
||||
pHTTPResponse->uContentLength,
|
||||
p_pLogServerData);
|
||||
GSWDebugLog(p_pLogServerData,"iReceivedCount=%d",iReceivedCount);
|
||||
if (iReceivedCount!= pHTTPResponse->uContentLength)
|
||||
{
|
||||
|
|
|
@ -87,9 +87,8 @@ char* GSWStats_formatStats(GSWTimeStats *p_pStats,
|
|||
if (*p=='+')
|
||||
{
|
||||
int aLen=0;
|
||||
p++;
|
||||
char* endPtr=NULL;
|
||||
double val=strtof(p,&endPtr);
|
||||
double val=strtof(++p,&endPtr);
|
||||
val=baseFloatSec+val;
|
||||
p=endPtr+1;
|
||||
sprintf(floatBuffer,"%0.3f",val);
|
||||
|
|
|
@ -85,10 +85,10 @@ long GSWTime_msecPart(GSWTime t);
|
|||
#define GSWAssert(condition,p_pLogServerData,p_pszFormat, args...); \
|
||||
{ if (!(condition)) \
|
||||
{ \
|
||||
char* format=0; \
|
||||
GSWLog(GSW_CRITICAL,p_pLogServerData,"ARGHH"); \
|
||||
char* format=malloc(strlen(p_pszFormat)+strlen(__FILE__)+101); \
|
||||
format=malloc(strlen(p_pszFormat)+strlen(__FILE__)+101); \
|
||||
sprintf(format,"In %s (%d): %s",__FILE__,__LINE__,p_pszFormat); \
|
||||
GSWLog(GSW_CRITICAL,p_pLogServerData,format, ## args); \
|
||||
free(format); \
|
||||
}} while (0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue