aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/main.c2
-rw-r--r--sbin/fsck_ffs/setup.c2
-rw-r--r--sbin/fsirand/fsirand.c2
-rw-r--r--sbin/growfs/growfs.c2
-rw-r--r--sbin/quotacheck/quotacheck.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 7301ca318d80..135b4fcfb64c 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -433,7 +433,7 @@ main(int argc, char *argv[])
msgtail("to %s\n", tape);
sync();
- if ((ret = sbget(diskfd, &sblock, -1)) != 0) {
+ if ((ret = sbget(diskfd, &sblock, STDSB)) != 0) {
switch (ret) {
case ENOENT:
warn("Cannot find file system superblock");
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index 82a970e12858..8599f6cde739 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -327,7 +327,7 @@ readsb(int listerr)
int bad, ret;
struct fs *fs;
- super = bflag ? bflag * dev_bsize : -1;
+ super = bflag ? bflag * dev_bsize : STDSB;
readcnt[sblk.b_type]++;
if ((ret = sbget(fsreadfd, &fs, super)) != 0) {
switch (ret) {
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index f5e26571f903..8675f7c3fd33 100644
--- a/sbin/fsirand/fsirand.c
+++ b/sbin/fsirand/fsirand.c
@@ -126,7 +126,7 @@ fsirand(char *device)
dp2 = NULL;
/* Read in master superblock */
- if ((ret = sbget(devfd, &sblock, -1)) != 0) {
+ if ((ret = sbget(devfd, &sblock, STDSB)) != 0) {
switch (ret) {
case ENOENT:
warn("Cannot find file system superblock");
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index b75f377841ef..967cda3330d0 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1449,7 +1449,7 @@ main(int argc, char **argv)
/*
* Read the current superblock, and take a backup.
*/
- if ((ret = sbget(fsi, &fs, -1)) != 0) {
+ if ((ret = sbget(fsi, &fs, STDSB)) != 0) {
switch (ret) {
case ENOENT:
errx(1, "superblock not recognized");
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 3b192a7a9585..9a01be11d9d0 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -321,7 +321,7 @@ chkquota(char *specname, struct quotafile *qfu, struct quotafile *qfg)
}
}
sync();
- if ((ret = sbget(fi, &fs, -1)) != 0) {
+ if ((ret = sbget(fi, &fs, STDSB)) != 0) {
switch (ret) {
case ENOENT:
warn("Cannot find file system superblock");