mtd/util sumtool.c,1.8,1.9

havasi at infradead.org havasi at infradead.org
Mon Jan 23 03:22:48 EST 2006


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv10180

Modified Files:
	sumtool.c 
Log Message:
[JFFS2] Sumtool compilation fix

Notification is by Michael Socaciu, patch is by Zoltan Sogor.



Index: sumtool.c
===================================================================
RCS file: /home/cvs/mtd/util/sumtool.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sumtool.c	7 Nov 2005 11:15:14 -0000	1.8
+++ sumtool.c	23 Jan 2006 08:22:45 -0000	1.9
@@ -370,6 +370,7 @@
 	struct jffs2_sum_marker *sm;
 	union jffs2_sum_mem *temp;
 	jint32_t offset;
+	jint32_t *tpage;
 	void *wpage;
 	int datasize, infosize, padsize;
 	jint32_t magic = cpu_to_je32(JFFS2_SUM_MAGIC);
@@ -383,7 +384,7 @@
 	infosize += padsize; datasize += padsize;
 	offset = cpu_to_je32(data_ofs);
 
-	jint32_t *tpage = (jint32_t *) malloc(datasize);
+	tpage = (jint32_t *) malloc(datasize);
 
 	if(!tpage)
 		error_msg_and_die("Can't allocate memory to dump summary information!\n");





More information about the linux-mtd-cvs mailing list