]> git.proxmox.com Git - mirror_corosync.git/commitdiff
votequorum.c: avoid a new warning and add a comment in cpg.h
authorJim Meyering <jim@meyering.net>
Mon, 4 May 2009 12:45:45 +0000 (12:45 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 4 May 2009 12:45:45 +0000 (12:45 +0000)
* votequorum.c: Avoid declaration of unused: â€˜votequorum_instance_destructor’
* include/corosync/cpg.h (cpg_deliver_fn_t) [msg]: Add a comment explaining
why this member is not const.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2169 fd59a12c-fef9-0310-b244-a6a79926bd2f

include/corosync/cpg.h
lib/votequorum.c

index 644d8d8d4fec1ca4e6d450bdbde5cbf5e8228659..242cbbe2ae62b5428e3023a905892dbb3dd146d6 100644 (file)
@@ -88,6 +88,10 @@ typedef void (*cpg_deliver_fn_t) (
        const struct cpg_name *group_name,
        uint32_t nodeid,
        uint32_t pid,
+       /*
+        * Unlike many "msg" pointers, this one is deliberately *not*
+        * declared const in order to permit in-place endian conversion.
+        */
        void *msg,
        size_t msg_len);
 
index fd5a9241809212c4557b0bdb657f3de49622a055..f76395a66419d088ec0b0b1c0ab824dbc48893c1 100644 (file)
@@ -64,8 +64,6 @@ struct votequorum_inst {
        votequorum_callbacks_t callbacks;
 };
 
-static void votequorum_instance_destructor (void *instance);
-
 DECLARE_HDB_DATABASE(votequorum_handle_t_db,NULL);
 
 cs_error_t votequorum_initialize (