summaryrefslogtreecommitdiff
path: root/usr.sbin/dev_mkdb/dev_mkdb.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-29 03:33:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-29 03:33:20 +0000
commitbbbcbaca48dab4bf31ad4f6e12551f455a58e81d (patch)
tree3cfc3a881e778c58699f9c34c2cad88bf1b791b6 /usr.sbin/dev_mkdb/dev_mkdb.c
parent8b38d88e71773246da76871cabd307ec2aabac01 (diff)
fix warning
Diffstat (limited to 'usr.sbin/dev_mkdb/dev_mkdb.c')
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.c b/usr.sbin/dev_mkdb/dev_mkdb.c
index 08892b495a4..4a0e17c7171 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.c
+++ b/usr.sbin/dev_mkdb/dev_mkdb.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$Id: dev_mkdb.c,v 1.1 1995/10/18 08:47:31 deraadt Exp $";
+static char rcsid[] = "$Id: dev_mkdb.c,v 1.2 1996/08/29 03:33:19 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -112,7 +112,7 @@ main(argc, argv)
key.data = &bkey;
key.size = sizeof(bkey);
data.data = buf;
- while (dp = readdir(dirp)) {
+ while ((dp = readdir(dirp))) {
if (lstat(dp->d_name, &sb)) {
warn("%s", dp->d_name);
continue;