OS/2 Tinderbox breakage

Attempt 2 to fix this - just cast the functions


git-svn-id: svn://10.0.0.236/trunk@74653 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2000-07-22 15:19:57 +00:00
parent 1121dc07a0
commit 6f1a2acf3f

View File

@@ -23,13 +23,13 @@
#include "nsErrorService.h"
#include "nsCRT.h"
static PR_CALLBACK void*
static void*
CloneCString(nsHashKey *aKey, void *aData, void* closure)
{
return nsCRT::strdup((const char*)aData);
}
static PR_CALLBACK PRBool
static PRBool
DeleteCString(nsHashKey *aKey, void *aData, void* closure)
{
nsCRT::free((char*)aData);
@@ -37,7 +37,7 @@ DeleteCString(nsHashKey *aKey, void *aData, void* closure)
}
nsInt2StrHashtable::nsInt2StrHashtable()
: mHashtable(CloneCString, nsnull, DeleteCString, nsnull, 16)
: mHashtable((nsHashtableCloneElementFunc)CloneCString, nsnull, (nsHashtableEnumFunc)DeleteCString, nsnull, 16)
{
}