summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-06-02 06:22:30 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-06-02 06:22:30 +0000
commit7d1b805ff73858f2d4673bfa6d181d739a007819 (patch)
tree20acf20f6914f4eb9282e7391154d6165fa35398
parentbf47ba80852626840296801583cf50238dd5a88e (diff)
Switch from antique struct direct to struct dirent
-rw-r--r--sbin/badsect/badsect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c
index 4329b07b23d..5a61c3cc099 100644
--- a/sbin/badsect/badsect.c
+++ b/sbin/badsect/badsect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: badsect.c,v 1.19 2009/10/27 23:59:32 deraadt Exp $ */
+/* $OpenBSD: badsect.c,v 1.20 2013/06/02 06:22:29 guenther Exp $ */
/* $NetBSD: badsect.c,v 1.10 1995/03/18 14:54:28 cgd Exp $ */
/*
@@ -41,12 +41,12 @@
* does not support bad block forwarding.
*/
#include <sys/param.h>
-#include <sys/dir.h>
#include <sys/stat.h>
#include <ufs/ffs/fs.h>
#include <ufs/ufs/dinode.h>
+#include <dirent.h>
#include <fcntl.h>
#include <paths.h>
#include <stdio.h>
@@ -78,7 +78,7 @@ main(int argc, char *argv[])
{
daddr64_t number;
struct stat stbuf, devstat;
- struct direct *dp;
+ struct dirent *dp;
DIR *dirp;
char name[BUFSIZ];
int len;