*** empty log message ***
[yaffs2.git] / yaffs_packedtags.c
similarity index 87%
rename from direct/yaffs_packedtags.c
rename to yaffs_packedtags.c
index 6214a71cab33b541462425db788323df0012b4db..d290ac98171f2cacddb9031f8411eb80ba08b20e 100644 (file)
@@ -1,5 +1,5 @@
 #include "yaffs_packedtags.h"
 #include "yaffs_packedtags.h"
-#include <string.h>
+#include "yportenv.h"
 
 void yaffs_PackTags(yaffs_PackedTags *pt, yaffs_ExtendedTags *t)
 {
 
 void yaffs_PackTags(yaffs_PackedTags *pt, yaffs_ExtendedTags *t)
 {
@@ -16,7 +16,7 @@ void yaffs_PackTags(yaffs_PackedTags *pt, yaffs_ExtendedTags *t)
 
 void yaffs_UnpackTags(yaffs_ExtendedTags *t, yaffs_PackedTags *pt)
 {
 
 void yaffs_UnpackTags(yaffs_ExtendedTags *t, yaffs_PackedTags *pt)
 {
-       static __u8 allFF[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,0xff, 0xff, 0xff, 0xff};
+       static const __u8 allFF[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,0xff, 0xff, 0xff, 0xff};
        
        if(memcmp(allFF,pt,sizeof(yaffs_PackedTags)))
        {
        
        if(memcmp(allFF,pt,sizeof(yaffs_PackedTags)))
        {