aboutsummaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-14 06:45:34 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-14 06:45:34 +0000
commit7ccfb2eb5f9d91bdb4139cb420a3b5f8deb2f6e8 (patch)
tree29ccfd792bcd8109ef331d031b6f04d89b99b310 /slirp/misc.c
parent5d0c5750bb19212c8ecfb9660956611baf6aa861 (diff)
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
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/misc.c b/slirp/misc.c
index 032a1f7b1f..3d921dfe02 100644
--- a/slirp/misc.c
+++ b/slirp/misc.c
@@ -307,7 +307,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
socklen_t addrlen = sizeof(addr);
int opt;
int master = -1;
- char *argv[256];
+ const char *argv[256];
#if 0
char buff[256];
#endif
@@ -411,7 +411,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
} while (c);
argv[i] = 0;
- execvp(argv[0], argv);
+ execvp(argv[0], (char **)argv);
/* Ooops, failed, let's tell the user why */
{