[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman/tests libtest.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield 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

--- cluster/cman/tests/libtest.c	2006/04/06 12:11:50	1.3
+++ cluster/cman/tests/libtest.c	2006/08/11 10:53:48	1.4
@@ -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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]