From 6267d2df5032e9636d5894497f987b22c5dc679e Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 7 Sep 1997 20:28:10 +0000 Subject: [PATCH] cast argument 1 to `gethostbyaddr' to `const char *' Rename some variables that conflict with cpp symbols on HP-UX 10.20 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3405 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/telnetd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/appl/telnet/telnetd/telnetd.c b/appl/telnet/telnetd/telnetd.c index c77b9b7e7..260a4ac9a 100644 --- a/appl/telnet/telnetd/telnetd.c +++ b/appl/telnet/telnetd/telnetd.c @@ -708,7 +708,8 @@ doit(struct sockaddr_in *who) #endif /* _SC_CRAY_SECURE_SYS */ /* get name of connected client */ - hp = gethostbyaddr((char *)&who->sin_addr, sizeof (struct in_addr), + hp = gethostbyaddr((const char *)&who->sin_addr, + sizeof (struct in_addr), who->sin_family); if (hp == NULL && registerd_host_only) { @@ -794,7 +795,7 @@ telnet(int f, int p) char defent[TABBUFSIZ]; char defstrs[TABBUFSIZ]; #undef TABBUFSIZ - char *HE; + char *he; char *HN; char *IM; void netflush(); @@ -948,8 +949,8 @@ telnet(int f, int p) hostinfo = 0; IM = DEFAULT_IM; - HE = 0; - edithost(HE, host_name); + he = 0; + edithost(he, host_name); if (hostinfo && *IM) putf(IM, ptyibuf2);