mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qapi: avoid reserved keywords
Clang compiler complained about use of reserved word 'restrict' in SLIRP and QAPI. Prefix C keywords with "q_", adjust SLIRP accordingly. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
8954bae3ce
commit
427a1a2cb1
2 changed files with 19 additions and 3 deletions
|
@ -718,9 +718,9 @@ int net_init_slirp(const NetClientOptions *opts, const char *name,
|
|||
net_init_slirp_configs(user->hostfwd, SLIRP_CFG_HOSTFWD);
|
||||
net_init_slirp_configs(user->guestfwd, 0);
|
||||
|
||||
ret = net_slirp_init(peer, "user", name, user->restrict, vnet, user->host,
|
||||
user->hostname, user->tftp, user->bootfile,
|
||||
user->dhcpstart, user->dns, user->smb,
|
||||
ret = net_slirp_init(peer, "user", name, user->q_restrict, vnet,
|
||||
user->host, user->hostname, user->tftp,
|
||||
user->bootfile, user->dhcpstart, user->dns, user->smb,
|
||||
user->smbserver);
|
||||
|
||||
while (slirp_configs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue