* return a const char instead
authorWilfried Göesgens <willi@citadel.org>
Sun, 17 Aug 2008 15:17:20 +0000 (15:17 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 17 Aug 2008 15:17:20 +0000 (15:17 +0000)
libcitadel/lib/hash.c
libcitadel/lib/libcitadel.h

index 1de53624da09f57355213fb1b6100bdb1263db85..20e0f1222690510df5441ab5767ff96a0aee5e2c 100644 (file)
@@ -565,7 +565,7 @@ void DeleteHashPos(HashPos **DelMe)
  * \param Data returns the Data found at HashPos
  * \returns whether the item was found or not.
  */
-int GetNextHashPos(HashList *Hash, HashPos *At, long *HKLen, char **HashKey, void **Data)
+int GetNextHashPos(HashList *Hash, HashPos *At, long *HKLen, const char **HashKey, void **Data)
 {
        long PayloadPos;
 
index 2459e94703f54e1b44dd197b265978c7edad5f58..8dcca78397523882cc3215fe76de8375a12e845f 100644 (file)
@@ -360,7 +360,7 @@ int dbg_PrintHash(HashList *Hash, PrintHashContent first, PrintHashContent Secon
 int PrintHash(HashList *Hash, TransitionFunc Trans, PrintHashDataFunc PrintEntry);
 HashPos *GetNewHashPos(void);
 void DeleteHashPos(HashPos **DelMe);
-int GetNextHashPos(HashList *Hash, HashPos *At, long *HKLen, char **HashKey, void **Data);
+int GetNextHashPos(HashList *Hash, HashPos *At, long *HKLen, const char **HashKey, void **Data);
 void SortByHashKey(HashList *Hash, int Order);
 void SortByHashKeyStr(HashList *Hash);
 int GetCount(HashList *Hash);