fix error in conditional define (and move it after header)
[yaffs2.git] / direct / yaffsfs.c
index 9ac4493d7cf842171753097bd9c2521defe2b4b2..dc6dab9640858117c6d139337c0405a2830a3010 100644 (file)
@@ -1,15 +1,14 @@
 /*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffsfs.c  The interface functions for using YAFFS via a "direct" interface.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
  *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ *   for Toby Churchill Ltd and Brightstar Engineering
  *
  * Created by Charles Manning <charles@aleph1.co.uk>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
- *
  */
  
 #include "yaffsfs.h"
@@ -25,7 +24,7 @@
 #endif
 
 
-const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.15 2006-11-17 01:43:48 charles Exp $";
+const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.18 2007-07-18 19:40:38 charles Exp $";
 
 // configurationList is the list of devices that are supported
 static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
@@ -39,6 +38,9 @@ static void yaffsfs_RemoveObjectCallback(yaffs_Object *obj);
 // Handle management.
 // 
 
+
+unsigned int yaffs_wr_attempts;
+
 typedef struct
 {
        __u8  inUse:1;          // this handle is in use