-/* $OpenBSD: fsck.h,v 1.31 2015/01/19 18:20:47 deraadt Exp $ */
+/* $OpenBSD: fsck.h,v 1.32 2018/01/05 09:33:47 otto Exp $ */
/* $NetBSD: fsck.h,v 1.13 1996/10/11 20:15:46 thorpej Exp $ */
/*
long secsize; /* actual disk sector size */
char nflag; /* assume a no response */
char yflag; /* assume a yes response */
-int bflag; /* location of alternate super block */
+daddr_t bflag; /* location of alternate super block */
int debug; /* output debugging info */
int cvtlevel; /* convert to newer file system format */
char usedsoftdep; /* just fix soft dependency inconsistencies */
-/* $OpenBSD: main.c,v 1.50 2016/09/09 15:37:15 tb Exp $ */
+/* $OpenBSD: main.c,v 1.51 2018/01/05 09:33:47 otto Exp $ */
/* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */
/*
volatile sig_atomic_t returntosingle;
-int argtoi(int, char *, char *, int);
+long long argtoi(int, char *, char *, int);
int checkfilesys(char *, char *, long, int);
int main(int, char *[]);
case 'b':
skipclean = 0;
bflag = argtoi('b', "number", optarg, 10);
- printf("Alternate super block location: %d\n", bflag);
+ printf("Alternate super block location: %lld\n",
+ (long long)bflag);
break;
case 'c':
exit(ret);
}
-int
+long long
argtoi(int flag, char *req, char *str, int base)
{
char *cp;
- int ret;
+ long long ret;
- ret = (int)strtol(str, &cp, base);
+ ret = strtoll(str, &cp, base);
if (cp == str || *cp)
errexit("-%c flag requires a %s\n", flag, req);
return (ret);
-/* $OpenBSD: setup.c,v 1.63 2016/09/09 15:37:15 tb Exp $ */
+/* $OpenBSD: setup.c,v 1.64 2018/01/05 09:33:47 otto Exp $ */
/* $NetBSD: setup.c,v 1.27 1996/09/27 22:45:19 christos Exp $ */
/*
}
found:
doskipclean = 0;
- pwarn("USING ALTERNATE SUPERBLOCK AT %d\n", bflag);
+ pwarn("USING ALTERNATE SUPERBLOCK AT %lld\n", (long long)bflag);
}
if (debug)
printf("clean = %d\n", sblock.fs_clean);