Skip to contentSkip to conversation

cluster/ccs/ccs_tool ccs_tool.c

Cluster-devel [email protected] 1 participant 1 message Aug 30, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rohara at sourceware.org 2007-08-30 16:25:50

Modified files:
ccs/ccs_tool : ccs_tool.c

Log message:
BZ 249781 - Fix ccs_tool to return EXIT_SUCCESS for most commands.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/ccs_tool.c.diff?cvsroot=cluster&r1=1.7&r2=1.8

ccs/ccs_tool/ccs_tool.c +8 -8
@@ -62,35 +62,35 @@
 
     else if(!strcmp(argv[optind], "addnode")){
 	    add_node(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "delnode")){
 	    del_node(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "addfence")){
 	    add_fence(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "delfence")){
 	    del_fence(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "lsnode")){
 	    list_nodes(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "lsfence")){
 	    list_fences(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "create")){
 	    create_skeleton(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
     else if(!strcmp(argv[optind], "addnodeids")){
 	    add_nodeids(argc-1, argv+1);
-	    exit(EXIT_FAILURE);
+	    exit(EXIT_SUCCESS);
     }
 
     else {