From: Kees Jongenburger Date: Fri, 27 Sep 2013 12:07:37 +0000 (+0200) Subject: arm:fix for test54 and test55 X-Git-Tag: v3.3.0~767 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/howto.html?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F865%2F2;p=minix.git arm:fix for test54 and test55 Define the file name templates as char arrays to prevent the toolchain from mapping them read-only. Change-Id: Ib2395587b62d4a6ff19c88adc4246dcb41344a53 --- diff --git a/test/test54.c b/test/test54.c index 5caa99472..7e4776e7e 100644 --- a/test/test54.c +++ b/test/test54.c @@ -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; diff --git a/test/test55.c b/test/test55.c index f6974da8d..a00b7f945 100644 --- a/test/test55.c +++ b/test/test55.c @@ -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) {