summaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-06-10 16:08:09 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-06-10 16:08:09 +0000
commit982126caee31a238629b088b4c261e620790ca0d (patch)
tree029548d3aeed8e28d5312dbf27a686585d8807c1 /sbin/fsdb
parent5ccc63500a0e5d6223e205ca6acaaa738a7bf319 (diff)
better take the size of the right table; found while tinkering with fsck_ffs
by accident the buggy expression yields the same value.
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index f842fc92548..c9397f569d0 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsdb.c,v 1.20 2007/04/10 17:17:25 millert Exp $ */
+/* $OpenBSD: fsdb.c,v 1.21 2008/06/10 16:08:08 otto Exp $ */
/* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: fsdb.c,v 1.20 2007/04/10 17:17:25 millert Exp $";
+static const char rcsid[] = "$OpenBSD: fsdb.c,v 1.21 2008/06/10 16:08:08 otto Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -625,7 +625,7 @@ CMDFUNCSTART(newtype)
return 1;
type = DIP(curinode, di_mode) & IFMT;
for (tp = typenamemap;
- tp < &typenamemap[sizeof(typemap)/sizeof(*typemap)];
+ tp < &typenamemap[sizeof(typenamemap)/sizeof(*typenamemap)];
tp++) {
if (!strcmp(argv[1], tp->typename)) {
printf("setting type to %s\n", tp->typename);
@@ -633,7 +633,7 @@ CMDFUNCSTART(newtype)
break;
}
}
- if (tp == &typenamemap[sizeof(typemap)/sizeof(*typemap)]) {
+ if (tp == &typenamemap[sizeof(typenamemap)/sizeof(*typenamemap)]) {
warnx("type `%s' not known", argv[1]);
warnx("try one of `file', `dir', `socket', `fifo'");
return 1;