From 6f1a2acf3ff930f85fe43ce46fca4671ec51c6c2 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Sat, 22 Jul 2000 15:19:57 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/base/nsErrorService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/xpcom/base/nsErrorService.cpp b/mozilla/xpcom/base/nsErrorService.cpp index c1dc4c29ca7..5b7c5a5c530 100644 --- a/mozilla/xpcom/base/nsErrorService.cpp +++ b/mozilla/xpcom/base/nsErrorService.cpp @@ -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) { }