projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Added more tests to direct/timothy_tests/quicktests
[yaffs2.git]
/
utils
/
mkyaffs2image.c
diff --git
a/utils/mkyaffs2image.c
b/utils/mkyaffs2image.c
index d54bcc5ed2b6d3e4d824f5fb76a964dc4bf4ae40..fa2229bbd06bc4131f30d7248fc3ef7ba2ef33b0 100644
(file)
--- a/
utils/mkyaffs2image.c
+++ b/
utils/mkyaffs2image.c
@@
-146,8
+146,8
@@
static int find_obj_in_list(dev_t dev, ino_t ino)
static void little_to_big_endian(struct yaffs_ext_tags *tagsPtr)
{
#if 0 // FIXME NCB
static void little_to_big_endian(struct yaffs_ext_tags *tagsPtr)
{
#if 0 // FIXME NCB
-
yaffs_tags_union_t * tags = (yaffs_tags_union_t
* )tagsPtr; // Work in bytes.
-
yaffs_tags_union_t
temp;
+
union yaffs_tags_union * tags = (union yaffs_tags_union
* )tagsPtr; // Work in bytes.
+
union yaffs_tags_union
temp;
memset(&temp, 0, sizeof(temp));
// Ick, I hate magic numbers.
memset(&temp, 0, sizeof(temp));
// Ick, I hate magic numbers.
@@
-172,7
+172,7
@@
static void little_to_big_endian(struct yaffs_ext_tags *tagsPtr)
#endif
}
#endif
}
-static void shuffle_oob(char *spareData, yaffs_packed_tags2 *pt)
+static void shuffle_oob(char *spareData,
struct
yaffs_packed_tags2 *pt)
{
assert(sizeof(*pt) <= spareSize);
// NAND LAYOUT: For non-trivial OOB orderings, here would be a good place to shuffle.
{
assert(sizeof(*pt) <= spareSize);
// NAND LAYOUT: For non-trivial OOB orderings, here would be a good place to shuffle.
@@
-182,7
+182,7
@@
static void shuffle_oob(char *spareData, yaffs_packed_tags2 *pt)
static int write_chunk(u8 *data, u32 id, u32 chunk_id, u32 n_bytes)
{
struct yaffs_ext_tags t;
static int write_chunk(u8 *data, u32 id, u32 chunk_id, u32 n_bytes)
{
struct yaffs_ext_tags t;
- yaffs_packed_tags2 pt;
+
struct
yaffs_packed_tags2 pt;
char spareData[spareSize];
if (write(outFile,data,chunkSize) != chunkSize)
char spareData[spareSize];
if (write(outFile,data,chunkSize) != chunkSize)