Module: wine Branch: master Commit: b038fa18ee0ee85502b7e12d1f7dd766905ab972 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b038fa18ee0ee85502b7e12d...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Mon Sep 25 20:02:10 2006 +0100
riched20: Cast-qual warning fix.
---
dlls/riched20/reader.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c index e6e4186..f3a917c 100644 --- a/dlls/riched20/reader.c +++ b/dlls/riched20/reader.c @@ -66,7 +66,7 @@ static void ReadPictGroup (RTF_Info *); static void ReadObjGroup (RTF_Info *); static void LookupInit (void); static void Lookup (RTF_Info *, char *); -static int Hash (char*); +static int Hash (const char *);
static void CharAttr(RTF_Info *info); static void CharSet(RTF_Info *info); @@ -2349,8 +2349,8 @@ static void LookupInit(void) memset(rtfHashTable, 0, RTF_KEY_COUNT * 2 * sizeof(*rtfHashTable)); for (rp = rtfKey; rp->rtfKStr != NULL; rp++) { int index; - - rp->rtfKHash = Hash ((char*)rp->rtfKStr); + + rp->rtfKHash = Hash (rp->rtfKStr); index = rp->rtfKHash % (RTF_KEY_COUNT * 2); if (!rtfHashTable[index].count) rtfHashTable[index].value = RTFAlloc(sizeof(RTFKey *)); @@ -2398,7 +2398,7 @@ static void Lookup(RTF_Info *info, char * Compute hash value of symbol */
-static int Hash(char *s) +static int Hash(const char *s) { char c; int val = 0;