From: Keith Bostic Date: Sun, 27 Dec 1987 04:32:35 +0000 (-0800) Subject: Berkeley header; declare strdup() properly for ANSI C X-Git-Tag: BSD-4_3_Net_1-Snapshot-Development~2868 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/9166e6a50a111acd0ee4996fd3bc9593f0e90068 Berkeley header; declare strdup() properly for ANSI C SCCS-vsn: usr.sbin/inetd/inetd.c 5.12 --- diff --git a/usr/src/usr.sbin/inetd/inetd.c b/usr/src/usr.sbin/inetd/inetd.c index f6e09d9cb2..ceda3ffe40 100644 --- a/usr/src/usr.sbin/inetd/inetd.c +++ b/usr/src/usr.sbin/inetd/inetd.c @@ -1,18 +1,24 @@ /* * Copyright (c) 1983 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that this notice is preserved and that due credit is given + * to the University of California at Berkeley. The name of the University + * may not be used to endorse or promote products derived from this + * software without specific prior written permission. This software + * is provided ``as is'' without express or implied warranty. */ #ifndef lint char copyright[] = "@(#) Copyright (c) 1983 Regents of the University of California.\n\ All rights reserved.\n"; -#endif not lint +#endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)inetd.c 5.11 (Berkeley) %G%"; -#endif not lint +static char sccsid[] = "@(#)inetd.c 5.12 (Berkeley) %G%"; +#endif /* not lint */ /* * Inetd - Internet super-server @@ -508,7 +514,6 @@ enter(cp) { register struct servtab *sep; long omask; - char *strdup(); sep = (struct servtab *)malloc(sizeof (*sep)); if (sep == (struct servtab *)0) { @@ -553,8 +558,8 @@ struct servtab * getconfigent() { register struct servtab *sep = &serv; - char *cp, *arg; int argc; + char *cp, *arg, *strdup(); more: while ((cp = nextline(fconfig)) && *cp == '#')