summaryrefslogtreecommitdiff
path: root/stubdom
diff options
context:
space:
mode:
authorCostin Lupu <costin.lupu@cs.pub.ro>2020-08-28 09:17:44 +0200
committerJan Beulich <jbeulich@suse.com>2020-08-28 09:17:44 +0200
commit8d990807ec2cde3061222a5ed2df62aba78bace9 (patch)
tree0593ceec69d2a1bba45ac57b067026f4a1e14fd1 /stubdom
parent0de9cbf9cfeedbd2a2e4719a2faa6084f0fcbb52 (diff)
stubdom/grub: update init_netfront() call for mini-os
This patch updates the call of init_netfront() function according to its recently updated declaration which can also include parameters for gateway and netmask addresses. While we are here, the patch also removes passing the ip parameter because (a) it is not used anywhere and (b) it wastes memory since it would reference a dynamically allocated string. Reported-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'stubdom')
-rw-r--r--stubdom/grub/mini-os.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stubdom/grub/mini-os.c b/stubdom/grub/mini-os.c
index 4fc052a255..b33dbf02fb 100644
--- a/stubdom/grub/mini-os.c
+++ b/stubdom/grub/mini-os.c
@@ -291,8 +291,6 @@ struct netfront_dev *net_dev;
int
minios_probe (struct nic *nic)
{
- char *ip;
-
if (net_dev)
return 1;
@@ -300,7 +298,7 @@ minios_probe (struct nic *nic)
grub_memset ((char *) arptable, 0,
MAX_ARP * sizeof (struct arptable_t));
- net_dev = init_netfront(NULL, (void*) -1, nic->node_addr, &ip);
+ net_dev = init_netfront(NULL, (void*) -1, nic->node_addr, NULL, NULL, NULL);
if (!net_dev)
return 0;