cleanup, add manual pages
[unix-history] / usr / src / old / make / dosys.c
index 070488f..738fb70 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)dosys.c     4.10 (Berkeley) %G%";
+static char *sccsid = "@(#)dosys.c     4.11 (Berkeley) %G%";
 #include "defs"
 #include <signal.h>
 
 #include "defs"
 #include <signal.h>
 
@@ -87,7 +87,7 @@ for (od = firstod; od; od = od->nxtopendir)
                 * we cannot call closedir since this will modify
                 * the parents data space; just call close directly.
                 */
                 * we cannot call closedir since this will modify
                 * the parents data space; just call close directly.
                 */
-               close(od->dirfc->dd_fd);
+               (void)close(dirfd(od->dirfc));
 }
 \f
 
 }
 \f