summaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2004-03-19 14:16:02 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2004-03-19 14:16:02 +0000
commite61d8028faded1e52408602c11609dabb7f3d5d8 (patch)
treeba014fe8711c249c83f58bca072bde058e4c3126 /sbin/fsdb
parent0b9f96e56b22f3d0bd8f9fa95204ba7a9e49683f (diff)
Fix bad indentation that creates the illusion that there's a bug here. tedu@,
deraadt@ ok
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 4e3b751ac7b..53179b750a4 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsdb.c,v 1.17 2003/10/31 08:44:07 otto Exp $ */
+/* $OpenBSD: fsdb.c,v 1.18 2004/03/19 14:16:01 aaron 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.17 2003/10/31 08:44:07 otto Exp $";
+static const char rcsid[] = "$OpenBSD: fsdb.c,v 1.18 2004/03/19 14:16:01 aaron Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -457,15 +457,16 @@ CMDFUNCSTART(focusname)
return 1;
}
for (p = argv[1]; p != NULL;) {
- while ((val = strsep(&p, "/")) != NULL && *val == '\0');
- if (val) {
- printf("component `%s': ", val);
- fflush(stdout);
- if (!dolookup(val)) {
- curinode = ginode(curinum);
- return(1);
- }
+ while ((val = strsep(&p, "/")) != NULL && *val == '\0')
+ ;
+ if (val) {
+ printf("component `%s': ", val);
+ fflush(stdout);
+ if (!dolookup(val)) {
+ curinode = ginode(curinum);
+ return(1);
}
+ }
}
return 0;
}