From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 10 Jul 2006 13:15:56 -0000 Subject: [Cluster-devel] cluster/cman/cman_tool main.c Message-ID: <20060710131556.11758.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.12.2.8&r2=1.12.2.9 --- cluster/cman/cman_tool/main.c 2006/03/06 10:38:42 1.12.2.8 +++ cluster/cman/cman_tool/main.c 2006/07/10 13:15:56 1.12.2.9 @@ -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);