diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-08 18:19:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-08 18:19:35 +0000 |
commit | 6bcc262bdbcb6ccebd45350428cdfce8e13fa8bd (patch) | |
tree | 3ab2553bd003d88d380f7b2c2ffb15a62103438e /usr.sbin | |
parent | 858e443cf5a14bae18729270c07c4501ead4c271 (diff) |
use the dirfd macro instead of reaching into the DIR and pulling out dd_fd
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lpr/common_source/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 1a0ecfb2bb8..d4d6647058f 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.19 2002/06/08 03:35:48 millert Exp $ */ +/* $OpenBSD: common.c,v 1.20 2002/06/08 18:19:34 millert Exp $ */ /* $NetBSD: common.c,v 1.21 2000/08/09 14:28:50 itojun Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static const char sccsid[] = "@(#)common.c 8.5 (Berkeley) 4/28/95"; #else -static const char rcsid[] = "$OpenBSD: common.c,v 1.19 2002/06/08 03:35:48 millert Exp $"; +static const char rcsid[] = "$OpenBSD: common.c,v 1.20 2002/06/08 18:19:34 millert Exp $"; #endif #endif /* not lint */ @@ -256,7 +256,7 @@ getq(namelist) PRIV_END; if (dirp == NULL) return(-1); - if (fstat(dirp->dd_fd, &stbuf) < 0) + if (fstat(dirfd(dirp), &stbuf) < 0) goto errdone; /* |