summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-04-13 18:38:16 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-04-13 18:38:16 +0000
commit9504d77e9c26ff12bf841c50bf5375702d73ba88 (patch)
treec08910677fb87520fef313279da00ef9041cda30 /usr.bin
parent8ebc4f9dd60cb3c9f1c698bc40f2b80f699fbb32 (diff)
downloadFreeBSD-src-9504d77e9c26ff12bf841c50bf5375702d73ba88.zip
FreeBSD-src-9504d77e9c26ff12bf841c50bf5375702d73ba88.tar.gz
Add some constness to make this WARNS clean again.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tftp/main.c6
1 files changed, 3 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud