]> git.proxmox.com Git - qemu.git/blobdiff - net.c
Avoid asprintf() which is not available on mingw
[qemu.git] / net.c
diff --git a/net.c b/net.c
index 98109e53b25960b0c4157b1ce40f51323064c041..60043ddec694ef914cd340d250163954d25976e4 100644 (file)
--- a/net.c
+++ b/net.c
@@ -482,8 +482,9 @@ int qemu_show_nic_models(const char *arg, const char *const *models)
 {
     int i;
 
-    if (!arg || strcmp(arg, "?"))
+    if (!arg || !is_help_option(arg)) {
         return 0;
+    }
 
     fprintf(stderr, "qemu: Supported NIC models: ");
     for (i = 0 ; models[i]; i++)