mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
# 37239
r = mscott, a = brendan OS/2 bring-up - These files were never ported to use NSPR datatypes - add const to match prototype
This commit is contained in:
parent
e224fead11
commit
863ee5ef19
@ -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; i<mListenerArrayCount; i++)
|
||||
@ -797,8 +797,8 @@ GetCRC(char *str)
|
||||
p->cm_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;
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user