1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

fixed a pointer cast warning

(This used to be ctdb commit df0e7a4aa13112d613702d8ea0fb0e18510d293c)
This commit is contained in:
Andrew Tridgell 2007-09-10 15:16:17 +10:00
parent 57d8102cf8
commit 8cd7ca149e
2 changed files with 5 additions and 3 deletions

View File

@ -2379,6 +2379,8 @@ int ctdb_ctrl_unregister_server_id(struct ctdb_context *ctdb,
/*
check if a server id exists
if a server id does exist, return *status == 1, otherwise *status == 0
*/
int ctdb_ctrl_check_server_id(struct ctdb_context *ctdb,
struct timeval timeout,

View File

@ -92,9 +92,9 @@ int32_t ctdb_control_check_server_id(struct ctdb_context *ctdb,
{
struct ctdb_server_id *server_id = (struct ctdb_server_id *)indata.dptr;
return (int32_t)trbt_lookuparray32(ctdb->server_ids,
SERVER_ID_KEY_SIZE,
get_server_id_key(server_id));
return trbt_lookuparray32(ctdb->server_ids,
SERVER_ID_KEY_SIZE,
get_server_id_key(server_id)) == NULL? 0 : 1;
}
/*