aboutsummaryrefslogtreecommitdiff
path: root/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
commit8078f0a5b947252902c414e62c3f1f6d88749838 (patch)
tree92a8e9e29ad44d200d5f9a7917c327116ffc88bd /misc.c
parent602eb94e5265fd6f6bfb80cf9a7ad39cf1842319 (diff)
downloadslirp-8078f0a5b947252902c414e62c3f1f6d88749838.zip
slirp-8078f0a5b947252902c414e62c3f1f6d88749838.tar.gz
slirp-8078f0a5b947252902c414e62c3f1f6d88749838.tar.bz2
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 'misc.c')
-rw-r--r--misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index deae6a9..6b65399 100644
--- a/misc.c
+++ b/misc.c
@@ -284,7 +284,7 @@ int 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
@@ -388,7 +388,7 @@ int 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 */
{