projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
[yaffs2.git]
/
yaffs_tagsvalidity.c
diff --git
a/yaffs_tagsvalidity.c
b/yaffs_tagsvalidity.c
index f86882a291915283b2912cde21ae66244424421e..afae3100976a1525c02be3c862a2e976deace57d 100644
(file)
--- a/
yaffs_tagsvalidity.c
+++ b/
yaffs_tagsvalidity.c
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-201
0
Aleph One Ltd.
+ * Copyright (C) 2002-201
1
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@
-13,16
+13,17
@@
#include "yaffs_tagsvalidity.h"
#include "yaffs_tagsvalidity.h"
+#define VALID0 0xaaaaaaaa
+#define VALID1 0x55555555
+
void yaffs_init_tags(struct yaffs_ext_tags *tags)
{
memset(tags, 0, sizeof(struct yaffs_ext_tags));
void yaffs_init_tags(struct yaffs_ext_tags *tags)
{
memset(tags, 0, sizeof(struct yaffs_ext_tags));
- tags->validity0 =
0xAAAAAAAA
;
- tags->validity1 =
0x55555555
;
+ tags->validity0 =
VALID0
;
+ tags->validity1 =
VALID1
;
}
int yaffs_validate_tags(struct yaffs_ext_tags *tags)
{
}
int yaffs_validate_tags(struct yaffs_ext_tags *tags)
{
- return (tags->validity0 == 0xAAAAAAAA &&
- tags->validity1 == 0x55555555);
-
+ return (tags->validity0 == VALID0 && tags->validity1 == VALID1);
}
}