mirror of https://github.com/proxmox/mirror_qemu
forgot fclose()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@979 c046a42c-6fe2-441c-8c8c-71466251a162master
parent
ae184e4ab7
commit
1d43a71773
|
@ -65,6 +65,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
|
||||||
lprint("%s", inet_ntoa(tmp_addr));
|
lprint("%s", inet_ntoa(tmp_addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fclose(f);
|
||||||
if (!found)
|
if (!found)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -75,7 +76,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
|
||||||
void slirp_init(void)
|
void slirp_init(void)
|
||||||
{
|
{
|
||||||
// debug_init("/tmp/slirp.log", DEBUG_DEFAULT);
|
// debug_init("/tmp/slirp.log", DEBUG_DEFAULT);
|
||||||
|
|
||||||
link_up = 1;
|
link_up = 1;
|
||||||
|
|
||||||
if_init();
|
if_init();
|
||||||
|
|
Loading…
Reference in New Issue