diff options
-rw-r--r-- | lib/inet.c | 2 | ||||
-rw-r--r-- | lib/net-support.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -416,7 +416,7 @@ static int read_services(void) } -char *get_sname(int socknumber, char *proto, int numeric) +const char *get_sname(int socknumber, const char *proto, int numeric) { static char buffer[64], init = 0; struct service *item; diff --git a/lib/net-support.h b/lib/net-support.h index b79f11b..dae15ac 100644 --- a/lib/net-support.h +++ b/lib/net-support.h @@ -124,7 +124,7 @@ extern int ROSE_rinput(int action, int flags, char **argv); extern int aftrans_opt(const char *arg); extern void aftrans_def(char *tool, char *argv0, char *dflt); -extern char *get_sname(int socknumber, char *proto, int numeric); +extern const char *get_sname(int socknumber, const char *proto, int numeric); extern int flag_unx; extern int flag_ipx; |