The service_available function was returning an int from the ais_service
data struct. Instead the function should check that the ais_service
entry is not NULL.
Regards
-steve
Index: exec/main.c
===================================================================
--- exec/main.c (revision 2050)
+++ exec/main.c (working copy)
@@ -538,7 +538,7 @@
static int corosync_service_available (unsigned int service)
{
- return (ais_service[service]);
+ return (ais_service[service] != NULL);
}
static int corosync_response_size_get (unsigned int service, unsigned int id)
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais