summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2008-06-10 16:08:08 +0000
committerotto <otto@openbsd.org>2008-06-10 16:08:08 +0000
commit3249b019ffec0317a65368162bfe33b555b086b2 (patch)
tree900e9135538e59138796c06849c9e808fbdbbc8f /sbin/fsdb
parentmore characters are allowed in the symbol lists, found by tobias@ (diff)
downloadwireguard-openbsd-3249b019ffec0317a65368162bfe33b555b086b2.tar.xz
wireguard-openbsd-3249b019ffec0317a65368162bfe33b555b086b2.zip
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;