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

[Cluster-devel] cluster/fence/fence_node fence_node.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	rohara sourceware org	2006-12-01 19:17:07

Modified files:
	fence/fence_node: fence_node.c 

Log message:
	Remove option to pass "self" parameter.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fence_node/fence_node.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7&r2=1.7.2.1

--- cluster/fence/fence_node/fence_node.c	2006/07/10 17:05:53	1.7
+++ cluster/fence/fence_node/fence_node.c	2006/12/01 19:17:06	1.7.2.1
@@ -20,7 +20,7 @@
 #include "copyright.cf"
 #include "ccs.h"
 
-#define OPTION_STRING           ("hOs:uV")
+#define OPTION_STRING           ("hOuV")
 
 #define die(fmt, args...) \
 do \
@@ -34,7 +34,7 @@
 static char *prog_name;
 static int force;
 
-int dispatch_fence_agent(int cd, char *victim, char *self);
+int dispatch_fence_agent(int cd, char *victim);
 
 static void print_usage(void)
 {
@@ -46,7 +46,6 @@
 	printf("\n");
 	printf("  -h               Print this help, then exit\n");
 	printf("  -O               Force connection to CCS\n");
-	printf("  -s               Name of current node\n");
 	printf("  -V               Print program version information, then exit\n");
 	printf("\n");
 }
@@ -55,7 +54,6 @@
 {
 	int cont = 1, optchar, error, cd;
 	char *victim = NULL;
-	char *self = NULL;
 
 	prog_name = argv[0];
 
@@ -69,10 +67,6 @@
 			exit(EXIT_SUCCESS);
 			break;
 
-		case 's':
-			self = optarg;
-			break;
-
 		case 'O':
 			force = 1;
 			break;
@@ -122,7 +116,7 @@
 		goto fail;
 	}
 
-	error = dispatch_fence_agent(cd, victim, self);
+	error = dispatch_fence_agent(cd, victim);
 	if (error)
 		goto fail_ccs;
 


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