cluster/cman/tests libtest.c
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.
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 ) {