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
This commit is contained in:
Angus Salkeld 2008-12-01 18:44:55 +00:00
parent 19eace8979
commit f2f20533fd
6 changed files with 7 additions and 7 deletions

View File

@ -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));
}

View File

@ -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());
}

View File

@ -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);

View File

@ -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 (

View File

@ -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);

View File

@ -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);