mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
This commit is contained in:
parent
5d0c5750bb
commit
7ccfb2eb5f
20 changed files with 72 additions and 70 deletions
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue