From 895a6e97e1d0cbafd9fd6a5b1aba674275d4eed4 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 23 Nov 2013 18:14:07 +0100 Subject: [PATCH] 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 --- WINGs/WINGs/WUtil.h | 2 +- WINGs/hashtable.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.4.GIT