From 2f348493d63551ab8770afa3fa04bf7d3fda29a5 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Wed, 15 Jun 2005 04:01:52 +0000 Subject: [PATCH] gcc 4 Thunderbird fixes for Mac OS X. Patch by Mark Mentovai. b=297619 r=peterv r=josh sr=peterv a=dbaron --- mailnews/compose/src/nsMsgAppleDouble.h | 2 +- mailnews/compose/src/nsMsgAppleDoubleEncode.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mailnews/compose/src/nsMsgAppleDouble.h b/mailnews/compose/src/nsMsgAppleDouble.h index 145aeb7248a..57d5e550425 100644 --- a/mailnews/compose/src/nsMsgAppleDouble.h +++ b/mailnews/compose/src/nsMsgAppleDouble.h @@ -218,7 +218,7 @@ typedef struct _appledouble_decode_object PR_BEGIN_EXTERN_C int ap_encode_init(appledouble_encode_object *p_ap_encode_obj, - char* fname, + const char* fname, char* separator); int ap_encode_next(appledouble_encode_object* p_ap_encode_obj, diff --git a/mailnews/compose/src/nsMsgAppleDoubleEncode.cpp b/mailnews/compose/src/nsMsgAppleDoubleEncode.cpp index 9fcfab17ae6..e75b5cf3c4a 100644 --- a/mailnews/compose/src/nsMsgAppleDoubleEncode.cpp +++ b/mailnews/compose/src/nsMsgAppleDoubleEncode.cpp @@ -133,8 +133,8 @@ MacGetFileType(nsFileSpec *fs, * Setup the encode envirment */ -int ap_encode_init( appledouble_encode_object *p_ap_encode_obj, - char *fname, +int ap_encode_init( appledouble_encode_object *p_ap_encode_obj, + const char *fname, char *separator) { FSSpec fspec; @@ -146,7 +146,7 @@ int ap_encode_init( appledouble_encode_object *p_ap_encode_obj, #if defined(XP_MAC) fspec = mySpec.GetFSSpec(); #else - FSPathMakeFSSpec((UInt8 *)fname, &fspec, NULL); + FSPathMakeFSSpec((const UInt8 *)fname, &fspec, NULL); #endif memset(p_ap_encode_obj, 0, sizeof(appledouble_encode_object));