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

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



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-07-13 18:21:36

Modified files:
	group/daemon   : main.c 

Log message:
	fix dump len so we don't complain

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&r1=1.38&r2=1.39

--- cluster/group/daemon/main.c	2006/06/22 19:06:07	1.38
+++ cluster/group/daemon/main.c	2006/07/13 18:21:35	1.39
@@ -488,15 +488,15 @@
 
 static int do_dump(int ci, int argc, char **argv)
 {
-	int rv, len = DUMP_SIZE;
+	int rv, len;
 
 	if (dump_wrap) {
 		len = DUMP_SIZE - dump_point;
 		rv = write(client[ci].fd, dump_buf + dump_point, len);
 		if (rv != len)
 			log_print("write error %d errno %d", rv, errno);
-		len = dump_point;
 	}
+	len = dump_point;
 
 	rv = write(client[ci].fd, dump_buf, len);
 	if (rv != len)


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