From b20ae6a0b31a15231948cf13f7d75680bfaf833c Mon Sep 17 00:00:00 2001 From: Luoqi Chen Date: Sun, 30 Jan 2000 05:09:48 +0000 Subject: [PATCH] Typo fix. While I am at it, remove the name translation from block to raw device, they are equivalent now (or more accurately we no longer have block devices). Submitted by: Gregory Sutter --- sbin/tunefs/tunefs.c | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 261345a7a6f2..a4426d5be20c 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -109,9 +109,8 @@ main(argc, argv) errx(1, "cannot work on read-write mounted file system"); } active = 1; - special = rawname(fs->fs_spec, device); - } else - special = fs->fs_spec; + } + special = fs->fs_spec; } again: if (stat(special, &st) < 0) { @@ -203,7 +202,7 @@ main(argc, argv) case 'n': name = "soft updates"; if (argc < 1) - errx(10, "-s: missing %s", name); + errx(10, "-n: missing %s", name); argc--, argv++; if (strcmp(*argv, "enable") == 0) { sblock.fs_flags |= FS_DOSOFTDEP; @@ -349,25 +348,3 @@ bread(bno, buf, cnt) } return (0); } - -char * -rawname(special, pathbuf) - char *special; - char *pathbuf; -{ - char *p; - int n; - - p = strrchr(special, '/'); - if (p) { - n = ++p - special; - bcopy(special, pathbuf, n); - } else { - strcpy(pathbuf, _PATH_DEV); - n = strlen(pathbuf); - p = special; - } - pathbuf[n++] = 'r'; - strcpy(pathbuf + n, p); - return pathbuf; -}