diff options
author | peter <peter@FreeBSD.org> | 1995-11-03 15:21:04 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-11-03 15:21:04 +0000 |
commit | 4d54865df66774920626e44586ec6ada137619cb (patch) | |
tree | c4b9dd1f47845e9f63a56298ed01c7d93f3c8790 /usr.sbin/quot/quot.c | |
parent | 6745cd711df42271e937e8def75360cc8af2b714 (diff) | |
download | FreeBSD-src-4d54865df66774920626e44586ec6ada137619cb.zip FreeBSD-src-4d54865df66774920626e44586ec6ada137619cb.tar.gz |
Minor tweaks to get quot to compile on FreeBSD..
Basically back-port the dynamic fsname strings back to static constants.
Diffstat (limited to 'usr.sbin/quot/quot.c')
-rw-r--r-- | usr.sbin/quot/quot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index e5f2daa..4825d82 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -30,7 +30,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: quot.c,v 1.6.4.1 1995/11/01 00:06:41 jtc Exp $"; +static char rcsid[] = "$Id: quot.c,v 1.1.1.1 1995/11/03 15:06:04 peter Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -567,7 +567,7 @@ int main(argc,argv) if (all) { cnt = getmntinfo(&mp,MNT_NOWAIT); for (; --cnt >= 0; mp++) { - if (!strncmp(mp->f_fstypename, MOUNT_FFS, MFSNAMELEN)) { + if (mp->f_type == MOUNT_UFS) { if (nm = strrchr(mp->f_mntfromname,'/')) { sprintf(dev,"/dev/r%s",nm + 1); nm = dev; |