commit | 7ccfb2eb5f9d91bdb4139cb420a3b5f8deb2f6e8 | [log] [tgz] |
---|---|---|
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | Sun Sep 14 06:45:34 2008 +0000 |
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | Sun Sep 14 06:45:34 2008 +0000 |
tree | 29ccfd792bcd8109ef331d031b6f04d89b99b310 | |
parent | 5d0c5750bb19212c8ecfb9660956611baf6aa861 [diff] [blame] |
Fix warnings that would be caused by gcc flag -Wwrite-strings git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5206 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/block.c b/block.c index 52c8f37..08fa299 100644 --- a/block.c +++ b/block.c
@@ -190,7 +190,7 @@ void get_tmp_filename(char *filename, int size) { int fd; - char *tmpdir; + const char *tmpdir; /* XXX: race condition possible */ tmpdir = getenv("TMPDIR"); if (!tmpdir)