diff options
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index ad6c40fc1..b2c746be9 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -501,7 +501,7 @@ static char *UNSPEC_sprint(struct sockaddr *sap, int numeric) | |||
501 | 501 | ||
502 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) | 502 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) |
503 | return safe_strncpy(buf, _("[NONE SET]"), sizeof(buf)); | 503 | return safe_strncpy(buf, _("[NONE SET]"), sizeof(buf)); |
504 | return (UNSPEC_print(sap->sa_data)); | 504 | return (UNSPEC_print((unsigned char *)sap->sa_data)); |
505 | } | 505 | } |
506 | 506 | ||
507 | static struct aftype unspec_aftype = { | 507 | static struct aftype unspec_aftype = { |
@@ -1833,7 +1833,7 @@ static void ife_print(struct interface *ptr) | |||
1833 | hardware address if it's null. */ | 1833 | hardware address if it's null. */ |
1834 | if (hw->print != NULL && (!(hw_null_address(hw, ptr->hwaddr) && | 1834 | if (hw->print != NULL && (!(hw_null_address(hw, ptr->hwaddr) && |
1835 | hw->suppress_null_addr))) | 1835 | hw->suppress_null_addr))) |
1836 | printf(_("HWaddr %s "), hw->print(ptr->hwaddr)); | 1836 | printf(_("HWaddr %s "), hw->print((unsigned char *)ptr->hwaddr)); |
1837 | #ifdef IFF_PORTSEL | 1837 | #ifdef IFF_PORTSEL |
1838 | if (ptr->flags & IFF_PORTSEL) { | 1838 | if (ptr->flags & IFF_PORTSEL) { |
1839 | printf(_("Media:%s"), if_port_text[ptr->map.port] /* [0] */); | 1839 | printf(_("Media:%s"), if_port_text[ptr->map.port] /* [0] */); |