Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_callback.c 


Log Message:
Add const modifier for compare and hash function.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_callback.c      25 Jul 2006 09:54:37 -0000      1.23
+++ ewl_callback.c      6 Sep 2006 07:07:53 -0000       1.24
@@ -13,8 +13,8 @@
  * the array the list won't be direct, but will have only one item.) 
  */
 
-static unsigned int ewl_callback_hash(void *key);
-static int ewl_callback_compare(void *key1, void *key2);
+static unsigned int ewl_callback_hash(const void *key);
+static int ewl_callback_compare(const void *key1, const void *key2);
 static void ewl_callback_unregister(Ewl_Callback * cb);
 static Ewl_Callback *ewl_callback_get(Ewl_Widget *w, unsigned int type, 
                                                unsigned int idx);
@@ -675,7 +675,7 @@
  * Hashes the value of a callback based on it's type, function, and user data.
  */
 static unsigned int
-ewl_callback_hash(void *key)
+ewl_callback_hash(const void *key)
 {
        Ewl_Callback *cb;
 
@@ -693,7 +693,7 @@
  * match, in which case it returns 0.
  */
 static int
-ewl_callback_compare(void *key1, void *key2)
+ewl_callback_compare(const void *key1, const void *key2)
 {
        Ewl_Callback *cb1;
        Ewl_Callback *cb2;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to