close() fixed to fclose().
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 18 Oct 1983 02:32:26 +0000 (18:32 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 18 Oct 1983 02:32:26 +0000 (18:32 -0800)
SCCS-vsn: lib/libc/gen/nlist.c 4.4
SCCS-vsn: lib/libc/mips/gen/nlist.c 4.4

usr/src/lib/libc/gen/nlist.c
usr/src/lib/libc/mips/gen/nlist.c

index 72840cc..341a301 100644 (file)
@@ -1,4 +1,4 @@
-/* @(#)nlist.c 4.3 (Berkeley) %G% */
+/* @(#)nlist.c 4.4 (Berkeley) %G% */
 #include <sys/types.h>
 #include <a.out.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <a.out.h>
 #include <stdio.h>
@@ -34,7 +34,7 @@ nlist(name, list)
                return (NULL);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
                return (NULL);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
-               close(f);
+               fclose(f);
                return (-1);
        }
        sa = N_SYMOFF(buf);
                return (-1);
        }
        sa = N_SYMOFF(buf);
index 72840cc..341a301 100644 (file)
@@ -1,4 +1,4 @@
-/* @(#)nlist.c 4.3 (Berkeley) %G% */
+/* @(#)nlist.c 4.4 (Berkeley) %G% */
 #include <sys/types.h>
 #include <a.out.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <a.out.h>
 #include <stdio.h>
@@ -34,7 +34,7 @@ nlist(name, list)
                return (NULL);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
                return (NULL);
        fread((char *)&buf, sizeof buf, 1, f);
        if (N_BADMAG(buf)) {
-               close(f);
+               fclose(f);
                return (-1);
        }
        sa = N_SYMOFF(buf);
                return (-1);
        }
        sa = N_SYMOFF(buf);