diff options
Diffstat (limited to 'lib/econet.c')
-rw-r--r-- | lib/econet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/econet.c b/lib/econet.c index 1229a28..05f09c9 100644 --- a/lib/econet.c +++ b/lib/econet.c @@ -32,8 +32,8 @@ /* Display an Econet address */ -static char * -ec_print(unsigned char *ptr) +static const char * +ec_print(const char *ptr) { static char buff[64]; struct ec_addr *ec = (struct ec_addr *) ptr; @@ -43,7 +43,7 @@ ec_print(unsigned char *ptr) /* Display an Econet socket address */ -static char * +static const char * ec_sprint(struct sockaddr *sap, int numeric) { struct sockaddr_ec *sec = (struct sockaddr_ec *) sap; @@ -51,7 +51,7 @@ ec_sprint(struct sockaddr *sap, int numeric) if (sap->sa_family != AF_ECONET) return _("[NONE SET]"); - return ec_print((unsigned char *) &sec->addr); + return ec_print((const char *) &sec->addr); } static int |