diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2009-04-28 21:25:58 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-01 09:44:10 -0500 |
commit | 206ab6e090eeddce71372041454d50d93a63017d (patch) | |
tree | ccb8efc37f54914ae76159ad93eb991a367a6871 | |
parent | 0fc8e0ec7f42fb79763b875edea2f50c0691c1f4 (diff) |
net: Avoid gcc'ism in net_host_device_add
>> + if (net_client_init(device, opts ? : "") < 0) {
>
> Is this a gcc extension? Do we want to introduce this construct to the
> code base.
Valid remark, fix below.
Thanks,
Jan
-------->
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2085,7 +2085,7 @@ void net_host_device_add(Monitor *mon, const char *device, const char *opts) monitor_printf(mon, "invalid host network device %s\n", device); return; } - if (net_client_init(device, opts ? : "") < 0) { + if (net_client_init(device, opts ? opts : "") < 0) { monitor_printf(mon, "adding host network device %s failed\n", device); } } |