From bac0341f1d6e0516334c4ab35326ce35d1504e34 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Thu, 8 Oct 1998 05:06:30 +0000 Subject: [PATCH] temporary fix to get unix building again... Get rid of the constness before calling PR_Free(...) git-svn-id: svn://10.0.0.236/trunk@12267 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/network/module/nsNetService.cpp b/mozilla/network/module/nsNetService.cpp index 87089b0b423..61a57cdfc98 100644 --- a/mozilla/network/module/nsNetService.cpp +++ b/mozilla/network/module/nsNetService.cpp @@ -159,7 +159,7 @@ nsNetlibService::nsNetlibService() XP_AppLanguage, XP_AppPlatform); if (XP_AppVersion) - PR_Free(XP_AppVersion); + PR_Free((char *)XP_AppVersion); XP_AppVersion = PL_strdup(buf); } @@ -661,7 +661,7 @@ nsNetlibService::SetCustomUserAgent(nsString aCustom) newAppVersion.Insert(aCustom, inIdx + 1); } - PR_Free(XP_AppVersion); + PR_Free((char *)XP_AppVersion); XP_AppVersion = newAppVersion.ToNewCString(); return NS_OK;