Commit d6b86f4d authored by bellard's avatar bellard
Browse files

-tun-fd option fix (Renzo Davoli)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@803 c046a42c-6fe2-441c-8c8c-71466251a162
parent 3a1bc175
...@@ -2078,6 +2078,7 @@ int main(int argc, char **argv) ...@@ -2078,6 +2078,7 @@ int main(int argc, char **argv)
{ {
const char *p; const char *p;
int fd; int fd;
net_if_type = NET_IF_TUN;
if (nb_tun_fds < MAX_NICS) { if (nb_tun_fds < MAX_NICS) {
fd = strtol(optarg, (char **)&p, 0); fd = strtol(optarg, (char **)&p, 0);
if (*p != '\0') { if (*p != '\0') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment