summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/mount.c2
-rw-r--r--commands/net.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/commands/mount.c b/commands/mount.c
index eefcdfa86a..54260e230f 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -40,7 +40,7 @@ static int do_mount (cmd_tbl_t *cmdtp, int argc, char *argv[])
entry = mtab_next_entry(entry);
if (entry) {
printf("%s on %s type %s\n",
- entry->parent_device ? entry->parent_device->id : "none",
+ entry->parent_device ? entry->parent_device->name : "none",
entry->path,
entry->dev->name);
}
diff --git a/commands/net.c b/commands/net.c
index 73da615b0d..1b5ca9f32b 100644
--- a/commands/net.c
+++ b/commands/net.c
@@ -45,10 +45,10 @@ static void netboot_update_env (void)
char tmp[22];
if (NetOurGatewayIP)
- dev_set_param_ip(eth_current->dev, "gateway", NetOurGatewayIP);
+ dev_set_param_ip(&eth_current->dev, "gateway", NetOurGatewayIP);
if (NetOurSubnetMask)
- dev_set_param_ip(eth_current->dev, "netmask", NetOurSubnetMask);
+ dev_set_param_ip(&eth_current->dev, "netmask", NetOurSubnetMask);
if (NetOurHostName[0])
@@ -58,10 +58,10 @@ static void netboot_update_env (void)
setenv ("rootpath", NetOurRootPath);
if (NetOurIP)
- dev_set_param_ip(eth_current->dev, "ipaddr", NetOurIP);
+ dev_set_param_ip(&eth_current->dev, "ipaddr", NetOurIP);
if (NetServerIP)
- dev_set_param_ip(eth_current->dev, "serverip", NetServerIP);
+ dev_set_param_ip(&eth_current->dev, "serverip", NetServerIP);
if (NetOurDNSIP) {
ip_to_string (NetOurDNSIP, tmp);