Berkeley header; declare strdup() properly for ANSI C
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 04:32:35 +0000 (20:32 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 04:32:35 +0000 (20:32 -0800)
SCCS-vsn: usr.sbin/inetd/inetd.c 5.12

usr/src/usr.sbin/inetd/inetd.c

index f6e09d9..ceda3ff 100644 (file)
@@ -1,18 +1,24 @@
 /*
  * Copyright (c) 1983 Regents of the University of California.
 /*
  * 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";
  */
 
 #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
 
 #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
 
 /*
  * Inetd - Internet super-server
@@ -508,7 +514,6 @@ enter(cp)
 {
        register struct servtab *sep;
        long omask;
 {
        register struct servtab *sep;
        long omask;
-       char *strdup();
 
        sep = (struct servtab *)malloc(sizeof (*sep));
        if (sep == (struct servtab *)0) {
 
        sep = (struct servtab *)malloc(sizeof (*sep));
        if (sep == (struct servtab *)0) {
@@ -553,8 +558,8 @@ struct servtab *
 getconfigent()
 {
        register struct servtab *sep = &serv;
 getconfigent()
 {
        register struct servtab *sep = &serv;
-       char *cp, *arg;
        int argc;
        int argc;
+       char *cp, *arg, *strdup();
 
 more:
        while ((cp = nextline(fconfig)) && *cp == '#')
 
 more:
        while ((cp = nextline(fconfig)) && *cp == '#')