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

[Cluster-devel] cluster/group/tool main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland 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

--- cluster/group/tool/main.c	2006/03/10 22:13:15	1.14
+++ cluster/group/tool/main.c	2006/06/28 19:58:32	1.15
@@ -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)


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