]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:fix for test54 and test55 65/865/2
authorKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 27 Sep 2013 12:07:37 +0000 (14:07 +0200)
committerGerrit Code Review <gerrit@gerrit>
Fri, 27 Sep 2013 13:15:37 +0000 (15:15 +0200)
Define the file name templates as char arrays to prevent the
toolchain from mapping them read-only.

Change-Id: Ib2395587b62d4a6ff19c88adc4246dcb41344a53

test/test54.c
test/test55.c

index 5caa994727bf191718cb7ae62165783695ac297c..7e4776e7e772cfd5c47f45cd8a82e81783088688 100644 (file)
@@ -20,7 +20,7 @@ static void do_test(void)
        size_t size;
        ssize_t nwritten;
        ssize_t nread;
-       char *filename = "pwrite_test_XXXXXXX";
+       char filename[] = "pwrite_test_XXXXXXX";
        int i;
 
        subtest = 1;
index f6974da8d55f9a5a035584012ad5eadee769605b..a00b7f945a97887aec149fdd7e645c4a0efc039e 100644 (file)
@@ -13,7 +13,7 @@ int max_error = 3;
 
 
 int subtest;
-char *filename = "statvfs_test_XXXXXX";
+char filename[] = "statvfs_test_XXXXXX";
 
 static void create_file(void)
 {