]> git.proxmox.com Git - qemu.git/blobdiff - net.c
qemu-nbd: print error messages from the daemon through a pipe
[qemu.git] / net.c
diff --git a/net.c b/net.c
index d05930c91f035d42c94579de745c6293aab24f12..cb52050bfd3f261798ca6fec80e7d09f2f350e4e 100644 (file)
--- a/net.c
+++ b/net.c
@@ -733,12 +733,7 @@ int net_handle_fd_param(Monitor *mon, const char *param)
             return -1;
         }
     } else {
-        char *endptr = NULL;
-
-        fd = strtol(param, &endptr, 10);
-        if (*endptr || (fd == 0 && param == endptr)) {
-            return -1;
-        }
+        fd = qemu_parse_fd(param);
     }
 
     return fd;