mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
* GSWeb.framework/GSWUtils.h/m (GetTmpName): Remove unused
function which generates warnings about tempnam usage. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21187 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
807d776789
commit
79e34a14c4
3 changed files with 5 additions and 19 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-04 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWeb.framework/GSWUtils.h/m (GetTmpName): Remove unused
|
||||
function which generates warnings about tempnam usage.
|
||||
|
||||
2005-05-03 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWAdaptors/common/GSWStats.c (GSWStats_formatStats):
|
||||
|
|
|
@ -156,7 +156,6 @@ GSWEB_EXPORT BOOL SBIsEqual(id id1,id id2);
|
|||
GSWEB_EXPORT BOOL SBIsValueEqual(id id1,id id2);
|
||||
GSWEB_EXPORT BOOL SBIsValueIsIn(id id1,id id2);
|
||||
|
||||
GSWEB_EXPORT id GetTmpName(NSString* dir,NSString* prefix);
|
||||
GSWEB_EXPORT NSTimeInterval NSTimeIntervalFromTimeVal(struct timeval* tv);
|
||||
GSWEB_EXPORT void NSTimeIntervalSleep(NSTimeInterval ti);
|
||||
|
||||
|
|
|
@ -444,24 +444,6 @@ BOOL SBIsValueIsIn(id id1,id id2)
|
|||
return NO;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
id GetTmpName(NSString* dir,NSString* prefix)
|
||||
{
|
||||
id result=nil;
|
||||
char *pszTmpFile=tempnam([dir cString],[prefix cString]);
|
||||
if (!pszTmpFile)
|
||||
{
|
||||
//TODO
|
||||
//result=NewError(1,@"Can't get TmpFile",0,0,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
result=[nsStringClass stringWithCString:pszTmpFile];
|
||||
free(pszTmpFile);
|
||||
};
|
||||
return result;
|
||||
};
|
||||
|
||||
/* The number of seconds between 1/1/2001 and 1/1/1970 = -978307200. */
|
||||
/* This number comes from:
|
||||
-(((31 years * 365 days) + 8 days for leap years) =total number of days
|
||||
|
|
Loading…
Reference in a new issue