From 5a39204a94f2e6be4f257cce5fd169dfa764aa39 Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 20 Dec 1996 19:41:30 +0000 Subject: [PATCH] _gethtbyname's arg should be const char *, not char * --- lib/libc/net/gethostnamadr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 3b432efcb8d9..2df469c0f921 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -1,4 +1,4 @@ -/* $NetBSD: gethostnamadr.c,v 1.16 1996/10/18 00:10:18 mrg Exp $ */ +/* $NetBSD: gethostnamadr.c,v 1.17 1996/12/20 19:41:30 cgd Exp $ */ /*- * Copyright (c) 1985, 1988, 1993 @@ -58,7 +58,7 @@ static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$Id: gethnamaddr.c,v 4.9.1.1 1993/05/02 22:43:03 vixie Rel "; #else -static char rcsid[] = "$NetBSD: gethostnamadr.c,v 1.16 1996/10/18 00:10:18 mrg Exp $"; +static char rcsid[] = "$NetBSD: gethostnamadr.c,v 1.17 1996/12/20 19:41:30 cgd Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -73,6 +73,7 @@ static char rcsid[] = "$NetBSD: gethostnamadr.c,v 1.16 1996/10/18 00:10:18 mrg E #include #include #include +#include #ifdef YP #include #include @@ -478,7 +479,7 @@ again: struct hostent * _gethtbyname(name) - char *name; + const char *name; { register struct hostent *p; register char **cp;