diff options
author | luoqi <luoqi@FreeBSD.org> | 2000-01-30 05:09:48 +0000 |
---|---|---|
committer | luoqi <luoqi@FreeBSD.org> | 2000-01-30 05:09:48 +0000 |
commit | bf195fb99c81be1d0eb9b0f4ce42eb2b214153f2 (patch) | |
tree | 6893989c0b25b8fb0925e15845ab171a9d704a9a /sbin/tunefs | |
parent | e5a07357d741a74e6301b8511e91d6d41b4cfa12 (diff) | |
download | FreeBSD-src-bf195fb99c81be1d0eb9b0f4ce42eb2b214153f2.zip FreeBSD-src-bf195fb99c81be1d0eb9b0f4ce42eb2b214153f2.tar.gz |
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 <gsutter@pobox.com>
Diffstat (limited to 'sbin/tunefs')
-rw-r--r-- | sbin/tunefs/tunefs.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 261345a..a4426d5 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 @@ again: 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; -} |