Skip to contentSkip to conversation

cluster/group/tool main.c

Cluster-devel [email protected] 1 participant 1 message Jun 28, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-06-28 19:58:32

Modified files:
group/tool : main.c

Log message:
fix compiler warnings

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/tool/main.c.diff?cvsroot=cluster&r1=1.14&r2=1.15

group/tool/main.c +3 -4
@@ -35,7 +35,6 @@
 static char *prog_name;
 static int operation;
 static int opt_ind;
-static char *ls_name;
 static int verbose;
 
 static void print_usage(void)
@@ -265,14 +264,14 @@
 		}
 		printf("]\n");
 	}
-
+	return 0;
 }
 
 static int connect_groupd(void)
 {
 	struct sockaddr_un sun;
 	socklen_t addrlen;
-	int i, rv, fd;
+	int rv, fd;
 
 	fd = socket(PF_UNIX, SOCK_STREAM, 0);
 	if (fd < 0)
@@ -295,7 +294,7 @@
 int do_dump(int argc, char **argv)
 {
 	char buf[DUMP_SIZE];
-	int i, rv, fd = connect_groupd();
+	int rv, fd = connect_groupd();
 
 	rv = write(fd, "dump", 4);
 	if (rv != 4)