]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove non-ascii characters from fat code
authorRemy Bohmer <linux@bohmer.net>
Thu, 27 Nov 2008 21:30:27 +0000 (22:30 +0100)
committerRemy Böhmer <linux@bohmer.net>
Thu, 4 Dec 2008 19:51:44 +0000 (20:51 +0100)
This code contains some non-ascii characters in comment lines and code.
Most editors do not display those characters properly and editing those
files results always in diffs at these places which are usually not required
to be changed at all. This is error prone.

So, remove those weird characters and replace them by normal C-style
equivalents for which the proper defines were already in the header.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
fs/fat/fat.c
include/fat.h

index 2f0bd8c14d2147e85cdfd426b3046c92dff3deb4..06eabc3629110b792faddbedf5c098326b9e0a89 100644 (file)
@@ -184,7 +184,7 @@ static void get_name (dir_entry *dirent, char *s_name)
        if (*s_name == DELETED_FLAG)
                *s_name = '\0';
        else if (*s_name == aRING)
-               *s_name = 'å';
+               *s_name = DELETED_FLAG;
        downcase (s_name);
 }
 
@@ -489,7 +489,7 @@ get_vfatname(fsdata *mydata, int curclust, __u8 *cluster,
 
        l_name[idx] = '\0';
        if (*l_name == DELETED_FLAG) *l_name = '\0';
-       else if (*l_name == aRING) *l_name = 'å';
+       else if (*l_name == aRING) *l_name = DELETED_FLAG;
        downcase(l_name);
 
        /* Return the real directory entry */
index 59de3fbec55bd434798e8906b73ba798879529cb..c8b94936209f1c204c20d0307875cd33836927a6 100644 (file)
@@ -67,7 +67,7 @@
 #define ATTR_VFAT     (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
 
 #define DELETED_FLAG   ((char)0xe5) /* Marks deleted files when in name[0] */
-#define aRING          0x05         /* Used to represent 'å' in name[0] */
+#define aRING          0x05         /* Used as special character in name[0] */
 
 /* Indicates that the entry is the last long entry in a set of long
  * dir entries