jffs2: fix searching for latest version in jffs2_1pass_list_inodes()
[pandora-u-boot.git] / fs / jffs2 / jffs2_private.h
index 3e1fff4..9745762 100644 (file)
@@ -12,7 +12,7 @@ struct b_node {
 struct b_list {
        struct b_node *listTail;
        struct b_node *listHead;
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        struct b_node *listLast;
        int (*listCompare)(struct b_node *new, struct b_node *node);
        u32 listLoops;
@@ -89,8 +89,8 @@ static inline int
 data_crc(struct jffs2_raw_inode *node)
 {
        if (node->data_crc != crc32_no_comp(0, (unsigned char *)
-                                            ((int) &node->node_crc + sizeof (node->node_crc)),
-                                             node->csize)) {
+                                           ((int) &node->node_crc + sizeof (node->node_crc)),
+                                            node->csize)) {
                return 0;
        } else {
                return 1;