aboutsummaryrefslogtreecommitdiff
path: root/nor-utils
diff options
context:
space:
mode:
Diffstat (limited to 'nor-utils')
-rw-r--r--nor-utils/Makemodule.am7
-rw-r--r--nor-utils/rfddump.c4
2 files changed, 3 insertions, 8 deletions
diff --git a/nor-utils/Makemodule.am b/nor-utils/Makemodule.am
index a5a0d4d..441a72e 100644
--- a/nor-utils/Makemodule.am
+++ b/nor-utils/Makemodule.am
@@ -1,10 +1,7 @@
-rfddump_SOURCES = nor-utils/rfddump.c
+rfddump_SOURCES = nor-utils/rfddump.c include/mtd_swab.h
rfddump_LDADD = libmtd.a
rfdformat_SOURCES = nor-utils/rfdformat.c
rfdformat_LDADD = libmtd.a
-NOR_BINS = \
- rfddump rfdformat
-
-sbin_PROGRAMS += $(NOR_BINS)
+sbin_PROGRAMS += rfddump rfdformat
diff --git a/nor-utils/rfddump.c b/nor-utils/rfddump.c
index 01ab4c2..d6d7f68 100644
--- a/nor-utils/rfddump.c
+++ b/nor-utils/rfddump.c
@@ -256,12 +256,10 @@ int main(int argc, char *argv[])
if (!rfd.sector_map) {
perror(PROGRAM_NAME);
close(fd);
- free(rfd.sector_map);
+ free(rfd.header);
return 2;
}
- rfd.mtd_filename = rfd.mtd_filename;
-
for (i=0; i<rfd.sector_count; i++)
rfd.sector_map[i] = -1;