obsoleting tables for internal names

This commit is contained in:
Jess Lovelace
2022-01-31 16:14:36 -05:00
parent 9abd72264f
commit 5398143f42
12 changed files with 39 additions and 39 deletions

View File

@@ -649,7 +649,7 @@ network_card_has_config(int card)
char *
network_card_get_internal_name(int card)
{
return((char *)net_cards[card].internal_name);
return((char *)net_cards[card].device->internal_name);
}
@@ -659,8 +659,8 @@ network_card_get_from_internal_name(char *s)
{
int c = 0;
while (strlen((char *)net_cards[c].internal_name)) {
if (! strcmp((char *)net_cards[c].internal_name, s))
while (strlen((char *)net_cards[c].device->internal_name)) {
if (! strcmp((char *)net_cards[c].device->internal_name, s))
return(c);
c++;
}