added Berkeley specific header
[unix-history] / usr / src / lib / libc / net / rcmd.c
index d7dfc37..cc92b86 100644 (file)
@@ -1,12 +1,18 @@
 /*
  * 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.
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)rcmd.c     5.14 (Berkeley) %G%";
-#endif LIBC_SCCS and not lint
+static char sccsid[] = "@(#)rcmd.c     5.16 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
 
 #include <stdio.h>
 #include <ctype.h>
 
 #include <stdio.h>
 #include <ctype.h>
@@ -286,7 +292,7 @@ int len;
                return(0);
        if (!domainp) {
                if (gethostname(ldomain, sizeof(ldomain)) == -1) {
                return(0);
        if (!domainp) {
                if (gethostname(ldomain, sizeof(ldomain)) == -1) {
-                       domainp = (char *)1;
+                       nodomain = 1;
                        return(0);
                }
                ldomain[MAXHOSTNAMELEN] = NULL;
                        return(0);
                }
                ldomain[MAXHOSTNAMELEN] = NULL;