mtd/util sumtool.c,1.5,1.6
havasi at infradead.org
havasi at infradead.org
Thu Sep 22 05:33:26 EDT 2005
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv12728
Modified Files:
sumtool.c
Log Message:
[JFFS2] fix new GCC warning/error in util/sumtool.c
Make target_endian non-static - because of the declaration of
jffs2-user.h.
Index: sumtool.c
===================================================================
RCS file: /home/cvs/mtd/util/sumtool.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- sumtool.c 7 Sep 2005 08:34:57 -0000 1.5
+++ sumtool.c 22 Sep 2005 09:33:22 -0000 1.6
@@ -63,7 +63,6 @@
static int cleanmarker_size = sizeof(cleanmarker);
static const char *short_options = "o:i:e:hvVblnc:p";
static int erase_block_size = 65536;
-static int target_endian = __BYTE_ORDER;
static int out_fd = -1;
static int in_fd = -1;
@@ -73,6 +72,8 @@
static uint8_t *file_buffer = NULL; /* file buffer contains the actual erase block*/
static unsigned int file_ofs = 0; /* position in the buffer */
+int target_endian = __BYTE_ORDER;
+
static struct option long_options[] = {
{"output", 1, NULL, 'o'},
{"input", 1, NULL, 'i'},
More information about the linux-mtd-cvs
mailing list