From: Jan Kiszka Date: Tue, 28 Apr 2009 19:25:58 +0000 (+0200) Subject: net: Avoid gcc'ism in net_host_device_add X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~9162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5aa7886b0d1dcb2fe68bc6ce5b7e9ea507d34d42;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/net.c b/net.c index 7ae1e6d60c..f1752d68f4 100644 --- a/net.c +++ b/net.c @@ -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); } }