projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Change NEEDS_SCANNING to NEEDS_SCAN
[yaffs2.git]
/
yaffs_tagsvalidity.c
diff --git
a/yaffs_tagsvalidity.c
b/yaffs_tagsvalidity.c
index 9e0bd1cf56bc0c13a04360b1b1b37923c9135db8..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-20
07
Aleph One Ltd.
+ * Copyright (C) 2002-20
11
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"
-void yaffs_InitialiseTags(yaffs_ExtendedTags * tags)
+#define VALID0 0xaaaaaaaa
+#define VALID1 0x55555555
+
+void yaffs_init_tags(struct yaffs_ext_tags *tags)
{
{
- memset(tags, 0, sizeof(
yaffs_ExtendedT
ags));
- tags->valid
Marker0 = 0xAAAAAAAA
;
- tags->valid
Marker1 = 0x55555555
;
+ memset(tags, 0, sizeof(
struct yaffs_ext_t
ags));
+ tags->valid
ity0 = VALID0
;
+ tags->valid
ity1 = VALID1
;
}
}
-int yaffs_
ValidateTags(yaffs_ExtendedTags *
tags)
+int yaffs_
validate_tags(struct yaffs_ext_tags *
tags)
{
{
- return (tags->validMarker0 == 0xAAAAAAAA &&
- tags->validMarker1 == 0x55555555);
-
+ return (tags->validity0 == VALID0 && tags->validity1 == VALID1);
}
}