o use GSWIntToNSString instead of string formatting

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19949 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2004-09-01 13:53:24 +00:00
parent b6af0e7fe4
commit 9975463973
2 changed files with 3 additions and 3 deletions

View file

@ -2877,7 +2877,7 @@ to another instance **/
GSWSession* session = nil;
NSString* header=nil;
header=[NSString stringWithFormat:@"%d",[aRequest applicationNumber]];
header=GSWIntToNSString([aRequest applicationNumber]);
NSDebugMLog(@"header=%@",header);
[aResponse setHeader:header

View file

@ -1,6 +1,6 @@
/** GSWDefaultAdaptor.m - <title>GSWeb: Class GSWDefaultAdaptor</title>
Copyright (C) 1999-2003 Free Software Foundation, Inc.
Copyright (C) 1999-2004 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999
@ -115,7 +115,7 @@ int allow_severity = LOG_INFO;
ASSIGN(_host,[[NSHost currentHost] name]);
};
_fileHandle=[[NSFileHandle fileHandleAsServerAtAddress:_host
service:[NSString stringWithFormat:@"%d",_port]
service:GSWIntToNSString(_port)
protocol:@"tcp"] retain];
NSDebugDeepMLLog(@"info",@"fileHandle=%p",(void*)_fileHandle);
[[NSNotificationCenter defaultCenter] addObserver:self