From f2f20533fd4c94d525a2daef41ed6167c00c191b Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 1 Dec 2008 18:44:55 +0000 Subject: [PATCH] change get node_id() to return an unsigned int git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1701 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemmrp.c | 2 +- exec/totempg.c | 2 +- exec/totemsrp.c | 4 ++-- exec/totemsrp.h | 2 +- include/corosync/engine/coroapi.h | 2 +- include/corosync/totem/totempg.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/exec/totemmrp.c b/exec/totemmrp.c index be94801e..ff8e50ce 100644 --- a/exec/totemmrp.c +++ b/exec/totemmrp.c @@ -192,7 +192,7 @@ int totemmrp_ifaces_get ( return (res); } -int totemmrp_my_nodeid_get (void) +unsigned int totemmrp_my_nodeid_get (void) { return (totemsrp_my_nodeid_get (totemsrp_handle_in)); } diff --git a/exec/totempg.c b/exec/totempg.c index 0c60f67d..ca06c41a 100644 --- a/exec/totempg.c +++ b/exec/totempg.c @@ -1264,7 +1264,7 @@ char *totempg_ifaces_print (unsigned int nodeid) return (iface_string); } -int totempg_my_nodeid_get (void) +unsigned int totempg_my_nodeid_get (void) { return (totemmrp_my_nodeid_get()); } diff --git a/exec/totemsrp.c b/exec/totemsrp.c index 393ae5d4..a83480f1 100644 --- a/exec/totemsrp.c +++ b/exec/totemsrp.c @@ -913,11 +913,11 @@ error_exit: return (res); } -int totemsrp_my_nodeid_get ( +unsigned int totemsrp_my_nodeid_get ( totemsrp_handle handle) { struct totemsrp_instance *instance; - int res; + unsigned int res; res = hdb_handle_get (&totemsrp_instance_database, handle, (void *)&instance); diff --git a/exec/totemsrp.h b/exec/totemsrp.h index ce619741..aba82011 100644 --- a/exec/totemsrp.h +++ b/exec/totemsrp.h @@ -104,7 +104,7 @@ extern int totemsrp_ifaces_get ( char ***status, unsigned int *iface_count); -extern int totemsrp_my_nodeid_get ( +extern unsigned int totemsrp_my_nodeid_get ( totemsrp_handle handle); extern int totemsrp_my_family_get ( diff --git a/include/corosync/engine/coroapi.h b/include/corosync/engine/coroapi.h index 9bb382dd..6dd4d28b 100644 --- a/include/corosync/engine/coroapi.h +++ b/include/corosync/engine/coroapi.h @@ -405,7 +405,7 @@ struct corosync_api_v1 { /* * Totem APIs */ - int (*totem_nodeid_get) (void); + unsigned int (*totem_nodeid_get) (void); int (*totem_family_get) (void); diff --git a/include/corosync/totem/totempg.h b/include/corosync/totem/totempg.h index f1885232..78927a6e 100644 --- a/include/corosync/totem/totempg.h +++ b/include/corosync/totem/totempg.h @@ -139,7 +139,7 @@ extern int totempg_ifaces_get ( extern char *totempg_ifaces_print (unsigned int nodeid); -extern int totempg_my_nodeid_get (void); +extern unsigned int totempg_my_nodeid_get (void); extern int totempg_my_family_get (void);