From: Christophe CURIS Date: Sat, 23 Nov 2013 17:14:07 +0000 (+0100) Subject: WINGs: Added 'const' attribute to function 'WMCreateHashTable' X-Git-Tag: wmaker-0.95.6~299 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/895a6e97e1d0cbafd9fd6a5b1aba674275d4eed4 WINGs: Added 'const' attribute to function 'WMCreateHashTable' Although this is a modification of the public API, this patch does not change the binary interface, and the attribute does not add a constraint on the parameter for the caller so we do not break the source compatibility either. Signed-off-by: Christophe CURIS --- diff --git a/WINGs/WINGs/WUtil.h b/WINGs/WINGs/WUtil.h index ec691f43..246ef2d1 100644 --- a/WINGs/WINGs/WUtil.h +++ b/WINGs/WINGs/WUtil.h @@ -347,7 +347,7 @@ void WHandleEvents(void); /* ---[ WINGs/hashtable.c ]----------------------------------------------- */ -WMHashTable* WMCreateHashTable(WMHashTableCallbacks callbacks); +WMHashTable* WMCreateHashTable(const WMHashTableCallbacks callbacks); void WMFreeHashTable(WMHashTable *table); diff --git a/WINGs/hashtable.c b/WINGs/hashtable.c index d8e53a27..c4c82144 100644 --- a/WINGs/hashtable.c +++ b/WINGs/hashtable.c @@ -90,7 +90,7 @@ static void rebuildTable(WMHashTable * table) wfree(oldArray); } -WMHashTable *WMCreateHashTable(WMHashTableCallbacks callbacks) +WMHashTable *WMCreateHashTable(const WMHashTableCallbacks callbacks) { HashTable *table;