From 9504d77e9c26ff12bf841c50bf5375702d73ba88 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Sat, 13 Apr 2002 18:38:16 +0000 Subject: Add some constness to make this WARNS clean again. --- usr.bin/tftp/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 251abf5..7da9184 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -96,7 +96,7 @@ void put(int, char **); void quit(int, char **); void setascii(int, char **); void setbinary(int, char **); -void setpeer0(char *, char *); +void setpeer0(char *, const char *); void setpeer(int, char **); void setrexmt(int, char **); void settimeout(int, char **); @@ -177,12 +177,12 @@ char hostname[MAXHOSTNAMELEN]; void setpeer0(host, port) char *host; - char *port; + const char *port; { struct addrinfo hints, *res0, *res; int error; struct sockaddr_storage ss; - char *cause = "unknown"; + const char *cause = "unknown"; if (connected) { close(f); -- cgit v1.1