cluster/cman/cman_tool main.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: pcaulfield at sourceware.org 2006-07-10 13:15:56
Modified files:
cman/cman_tool : main.c
Log message:
Allow zero votes.
cman/cman_tool/main.c +2 -1
@@ -553,7 +553,7 @@if (!comline->clustername[0 ])die ("cluster name not set" ); -if (!comline->votes_opt) +if (comline->votes <0 ) comline->votes =DEFAULT_VOTES ;if (!comline->port)
@@ -619,6 +619,7 @@ prog_name = argv[0 ];memset (&comline,0 ,sizeof (commandline_t)); + comline.votes =-1 ;decode_arguments (argc, argv, &comline);