Commit 2b4f34b9 authored by Mike Frysinger's avatar Mike Frysinger

get_sname: constify args/return when possible

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 5888d1b3
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment