[PATCH] Warn on writable strings
[fio.git] / init.c
diff --git a/init.c b/init.c
index 0352c555c8a9b191e8adff4fb4514ae976afbc69..54e2ecae28202622d6954308d192439bb55dca2c 100644 (file)
--- a/init.c
+++ b/init.c
@@ -539,8 +539,8 @@ static char *to_kmg(unsigned int val)
  */
 static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
 {
-       char *ddir_str[] = { "read", "write", "randread", "randwrite",
-                            "rw", NULL, "randrw" };
+       const char *ddir_str[] = { "read", "write", "randread", "randwrite",
+                                  "rw", NULL, "randrw" };
        struct stat sb;
        int numjobs, ddir, i;
        struct fio_file *f;