From 863ee5ef19a7ebbad06bf3c80e450f082e806010 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 8 Jun 2000 22:55:09 +0000 Subject: [PATCH] # 37239 r = mscott, a = brendan OS/2 bring-up - These files were never ported to use NSPR datatypes - add const to match prototype --- mailnews/absync/src/nsAbSync.cpp | 6 +++--- mailnews/absync/src/nsAbSyncCRCModel.h | 11 ++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/mailnews/absync/src/nsAbSync.cpp b/mailnews/absync/src/nsAbSync.cpp index a00bc99db04d..f56971982eed 100644 --- a/mailnews/absync/src/nsAbSync.cpp +++ b/mailnews/absync/src/nsAbSync.cpp @@ -371,7 +371,7 @@ nsAbSync::NotifyListenersOnStopAuthOperation(nsresult aStatus, const PRUnichar * } nsresult -nsAbSync::NotifyListenersOnStartSync(PRInt32 aTransactionID, PRUint32 aMsgSize) +nsAbSync::NotifyListenersOnStartSync(PRInt32 aTransactionID, const PRUint32 aMsgSize) { PRInt32 i; for (i=0; icm_width = 32; p->cm_poly = 0x4C11DB7; p->cm_init = 0xFFFFFFFF; - p->cm_refin = TRUE; - p->cm_refot = TRUE; + p->cm_refin = PR_TRUE; + p->cm_refot = PR_TRUE; p->cm_xorot = 0xFFFFFFFF; char *pChar = str; diff --git a/mailnews/absync/src/nsAbSyncCRCModel.h b/mailnews/absync/src/nsAbSyncCRCModel.h index 55dac52a99b5..c90339651eb7 100644 --- a/mailnews/absync/src/nsAbSyncCRCModel.h +++ b/mailnews/absync/src/nsAbSyncCRCModel.h @@ -69,6 +69,8 @@ #ifndef CM_DONE #define CM_DONE +#include "prtypes.h" + /******************************************************************************/ /* The following definitions are extracted from my style header file which */ @@ -78,11 +80,6 @@ typedef unsigned long ulong; typedef unsigned char * p_ubyte_; -#ifndef TRUE -#define FALSE 0 -#define TRUE 1 -#endif - /* Change to the second definition if you don't have prototypes. */ #define P_(A) A /* #define P_(A) () */ @@ -102,8 +99,8 @@ typedef struct int cm_width; /* Parameter: Width in bits [8,32]. */ ulong cm_poly; /* Parameter: The algorithm's polynomial. */ ulong cm_init; /* Parameter: Initial register value. */ - bool cm_refin; /* Parameter: Reflect input bytes? */ - bool cm_refot; /* Parameter: Reflect output CRC? */ + PRBool cm_refin; /* Parameter: Reflect input bytes? */ + PRBool cm_refot; /* Parameter: Reflect output CRC? */ ulong cm_xorot; /* Parameter: XOR this to output CRC. */ ulong cm_reg; /* Context: Context during execution. */