<sys/time.h> becomes <time.h>
[unix-history] / usr / src / lib / libc / gen / nlist.c
index b67b938..7065978 100644 (file)
@@ -1,4 +1,12 @@
-/* @(#)nlist.c 4.6 (Berkeley) %G% */
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)nlist.c    5.2 (Berkeley) %G%";
+#endif LIBC_SCCS and not lint
 
 #include <sys/types.h>
 #include <a.out.h>
 
 #include <sys/types.h>
 #include <a.out.h>
@@ -34,7 +42,7 @@ nlist(name, list)
        }
        f = fopen(name, "r");
        if (f == NULL)
        }
        f = fopen(name, "r");
        if (f == NULL)
-               return (NULL);
+               return (-1);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
                fclose(f);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
                fclose(f);