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
This commit is contained in:
@@ -708,7 +708,8 @@ doit(struct sockaddr_in *who)
|
|||||||
#endif /* _SC_CRAY_SECURE_SYS */
|
#endif /* _SC_CRAY_SECURE_SYS */
|
||||||
|
|
||||||
/* get name of connected client */
|
/* 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);
|
who->sin_family);
|
||||||
|
|
||||||
if (hp == NULL && registerd_host_only) {
|
if (hp == NULL && registerd_host_only) {
|
||||||
@@ -794,7 +795,7 @@ telnet(int f, int p)
|
|||||||
char defent[TABBUFSIZ];
|
char defent[TABBUFSIZ];
|
||||||
char defstrs[TABBUFSIZ];
|
char defstrs[TABBUFSIZ];
|
||||||
#undef TABBUFSIZ
|
#undef TABBUFSIZ
|
||||||
char *HE;
|
char *he;
|
||||||
char *HN;
|
char *HN;
|
||||||
char *IM;
|
char *IM;
|
||||||
void netflush();
|
void netflush();
|
||||||
@@ -948,8 +949,8 @@ telnet(int f, int p)
|
|||||||
hostinfo = 0;
|
hostinfo = 0;
|
||||||
|
|
||||||
IM = DEFAULT_IM;
|
IM = DEFAULT_IM;
|
||||||
HE = 0;
|
he = 0;
|
||||||
edithost(HE, host_name);
|
edithost(he, host_name);
|
||||||
if (hostinfo && *IM)
|
if (hostinfo && *IM)
|
||||||
putf(IM, ptyibuf2);
|
putf(IM, ptyibuf2);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user