=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fstat/fstat.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/fstat/fstat.c 2001/06/22 22:43:20 1.30 +++ src/usr.bin/fstat/fstat.c 2001/07/12 05:17:06 1.31 @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.30 2001/06/22 22:43:20 pvalchev Exp $ */ +/* $OpenBSD: fstat.c,v 1.31 2001/07/12 05:17:06 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$OpenBSD: fstat.c,v 1.30 2001/06/22 22:43:20 pvalchev Exp $"; +static char *rcsid = "$OpenBSD: fstat.c,v 1.31 2001/07/12 05:17:06 deraadt Exp $"; #endif /* not lint */ #include @@ -150,6 +150,8 @@ int isofs_filestat __P((struct vnode *, struct filestat *)); int msdos_filestat __P((struct vnode *, struct filestat *)); int nfs_filestat __P((struct vnode *, struct filestat *)); +int xfs_filestat __P((struct vnode *, struct filestat *)); +int null_filestat __P((struct vnode *, struct filestat *)); void dofiles __P((struct kinfo_proc *)); void getinetproto __P((int)); void socktrans __P((struct socket *, int)); @@ -460,7 +462,8 @@ return; } if (nflg) - (void)printf(" %2d,%-2d", major(fst.fsid), minor(fst.fsid)); + (void)printf(" %2ld,%-2ld", (long)major(fst.fsid), + (long)minor(fst.fsid)); else (void)printf(" %-8s", getmnton(vn.v_mount)); if (nflg) @@ -489,9 +492,9 @@ break; } default: - printf(" %8qd", fst.size); + printf(" %8lld", (long long)fst.size); if (oflg) - printf(":%-8qd", offset); + printf(":%-8lld", (long long)offset); } if (filename && !fsflg) printf(" %s", filename);