]> git.sur5r.net Git - u-boot/blobdiff - fs/fat/fat_write.c
FAT: use toupper/tolower instead of recoding them
[u-boot] / fs / fat / fat_write.c
index 4a1bda0a37effd984885800ec4679be6f0f71666..819c33b1abdb16a7f6bb75de6ca2b2871dd28899 100644 (file)
@@ -28,6 +28,7 @@
 #include <fat.h>
 #include <asm/byteorder.h>
 #include <part.h>
+#include <linux/ctype.h>
 #include "fat.c"
 
 static void uppercase(char *str, int len)
@@ -35,7 +36,7 @@ static void uppercase(char *str, int len)
        int i;
 
        for (i = 0; i < len; i++) {
-               TOUPPER(*str);
+               *str = toupper(*str);
                str++;
        }
 }