From 85e015c7c895da7b1c37ed9bde9183c9e1bfacc8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 17 May 2008 02:36:28 +0000 Subject: two fixlets for -Wall --- networking/ifconfig.c | 2 +- networking/interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'networking') diff --git a/networking/ifconfig.c b/networking/ifconfig.c index d021757..965fca3 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -514,7 +514,7 @@ static int in_ether(const char *bufp, struct sockaddr *sap) unsigned char c; sap->sa_family = ARPHRD_ETHER; - ptr = sap->sa_data; + ptr = (char *) sap->sa_data; i = 0; do { diff --git a/networking/interface.c b/networking/interface.c index dff6add..abd58b5 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -1224,7 +1224,7 @@ int in_ib(const char *bufp, struct sockaddr *sap) unsigned val; sap->sa_family = ib_hwtype.type; - ptr = sap->sa_data; + ptr = (unsigned char *) sap->sa_data; i = 0; orig = bufp; -- cgit v1.1