Commit b038fa18 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

riched20: Cast-qual warning fix.

parent 4e9087a6
...@@ -66,7 +66,7 @@ static void ReadPictGroup (RTF_Info *); ...@@ -66,7 +66,7 @@ static void ReadPictGroup (RTF_Info *);
static void ReadObjGroup (RTF_Info *); static void ReadObjGroup (RTF_Info *);
static void LookupInit (void); static void LookupInit (void);
static void Lookup (RTF_Info *, char *); static void Lookup (RTF_Info *, char *);
static int Hash (char*); static int Hash (const char *);
static void CharAttr(RTF_Info *info); static void CharAttr(RTF_Info *info);
static void CharSet(RTF_Info *info); static void CharSet(RTF_Info *info);
...@@ -2350,7 +2350,7 @@ static void LookupInit(void) ...@@ -2350,7 +2350,7 @@ static void LookupInit(void)
for (rp = rtfKey; rp->rtfKStr != NULL; rp++) { for (rp = rtfKey; rp->rtfKStr != NULL; rp++) {
int index; int index;
rp->rtfKHash = Hash ((char*)rp->rtfKStr); rp->rtfKHash = Hash (rp->rtfKStr);
index = rp->rtfKHash % (RTF_KEY_COUNT * 2); index = rp->rtfKHash % (RTF_KEY_COUNT * 2);
if (!rtfHashTable[index].count) if (!rtfHashTable[index].count)
rtfHashTable[index].value = RTFAlloc(sizeof(RTFKey *)); rtfHashTable[index].value = RTFAlloc(sizeof(RTFKey *));
...@@ -2398,7 +2398,7 @@ static void Lookup(RTF_Info *info, char *s) ...@@ -2398,7 +2398,7 @@ static void Lookup(RTF_Info *info, char *s)
* Compute hash value of symbol * Compute hash value of symbol
*/ */
static int Hash(char *s) static int Hash(const char *s)
{ {
char c; char c;
int val = 0; int val = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment