Skip to contentSkip to conversation

cluster/cman/tests libtest.c

Cluster-devel [email protected] 1 participant 1 message Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2006-08-11 10:53:48

Modified files:
cman/tests : libtest.c

Log message:
Set a good example by checking return values.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/tests/libtest.c.diff?cvsroot=cluster&r1=1.3&r2=1.4

cman/tests/libtest.c +4 -1
@@ -87,7 +87,10 @@
 		perror("get_node failed");
 	}
 
-	cman_start_notification(h, cman_callback);
+	if (!cman_start_notification(h, cman_callback))
+	{
+		perror("start_notification");
+	}
 	while (1) {
 	  int ret = cman_dispatch(h, CMAN_DISPATCH_BLOCKING | CMAN_DISPATCH_ALL);
 	  if (ret == -1) {