projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: update linux 3.2 to 3.2.9
[openwrt.git]
/
package
/
mtd
/
src
/
mtd.c
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index
7f58165
..
a7d4c1b
100644
(file)
--- a/
package/mtd/src/mtd.c
+++ b/
package/mtd/src/mtd.c
@@
-41,10
+41,14
@@
#include <sys/stat.h>
#include <sys/reboot.h>
#include <linux/reboot.h>
#include <sys/stat.h>
#include <sys/reboot.h>
#include <linux/reboot.h>
-#include
"mtd-api.h"
+#include
<mtd/mtd-user.h>
#include "fis.h"
#include "mtd.h"
#include "fis.h"
#include "mtd.h"
+#ifndef MTDREFRESH
+#define MTDREFRESH _IO('M', 50)
+#endif
+
#define MAX_ARGS 8
#define JFFS2_DEFAULT_DIR "" /* directory name without /, empty means root dir */
#define MAX_ARGS 8
#define JFFS2_DEFAULT_DIR "" /* directory name without /, empty means root dir */
@@
-409,6
+413,9
@@
resume:
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
+ /* don't add it again */
+ jffs2file = NULL;
+
w += skip;
e += skip;
skip -= buflen;
w += skip;
e += skip;
skip -= buflen;
This page took
0.021022 seconds
and
4
git commands to generate.