mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-05 09:40:38 +00:00
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:
parent
19eace8979
commit
f2f20533fd
@ -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));
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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 (
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user