From 2dd3dfdb1ce0d52d4ea192002145ef7d7e208359 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 26 Mar 2000 14:48:46 +0000 Subject: Remove incorrect use of .Nm. Wrap long lines, Unwrap short lines Options: -> The following options are available: --- usr.bin/quota/quota.1 | 11 +++++------ usr.bin/quota/quota.c | 14 +++++++------- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'usr.bin/quota') diff --git a/usr.bin/quota/quota.1 b/usr.bin/quota/quota.1 index 7d1a471..c500e54 100644 --- a/usr.bin/quota/quota.1 +++ b/usr.bin/quota/quota.1 @@ -59,9 +59,8 @@ displays users' disk usage and limits. By default only the user quotas are printed. .Pp -Options: -.Pp -.Bl -tag -width Ds +The following options are available: +.Bl -tag -width indent .It Fl g Print group quotas for the group of which the user is a member. @@ -105,14 +104,14 @@ flag. .Nm Quota tries to report the quotas of all mounted filesystems. If the filesystem is mounted via -.Nm NFS , +.Tn NFS , it will attempt to contact the .Xr rpc.rquotad 8 daemon on the -.Nm NFS +.Tn NFS server. For -.Nm UFS +.Tn UFS filesystems, quotas must be turned on in .Pa /etc/fstab . If diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 246922d..b17669b 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -295,7 +295,8 @@ showgrpname(name) if (grp->gr_gid == gidset[i]) break; if (i >= ngroups && getuid() != 0) { - warnx("%s (gid %u): permission denied", name, grp->gr_gid); + warnx("%s (gid %u): permission denied", name, + grp->gr_gid); return; } } @@ -559,7 +560,7 @@ getufsquota(fst, fs, qup, id, quotatype) if (quotactl(fs->fs_file, qcmd, id, (char *)&qup->dqblk) != 0) { if ((fd = open(qfpathname, O_RDONLY)) < 0) { - warn(qfpathname); + warn("%s", qfpathname); return (0); } (void) lseek(fd, (off_t)(id * sizeof(struct dqblk)), L_SET); @@ -611,8 +612,7 @@ getnfsquota(fst, fs, qup, id, quotatype) */ cp = strchr(fst->f_mntfromname, ':'); if (cp == NULL) { - warnx("cannot find hostname for %s", - fst->f_mntfromname); + warnx("cannot find hostname for %s", fst->f_mntfromname); return (0); } @@ -665,8 +665,7 @@ getnfsquota(fst, fs, qup, id, quotatype) *cp = ':'; return (1); default: - warnx("bad rpc result, host: %s", - fst->f_mntfromname); + warnx("bad rpc result, host: %s", fst->f_mntfromname); break; } *cp = ':'; @@ -692,7 +691,8 @@ callaurpc(host, prognum, versnum, procnum, inproc, in, outproc, out) return ((int) RPC_UNKNOWNHOST); timeout.tv_usec = 0; timeout.tv_sec = 6; - bcopy(hp->h_addr, &server_addr.sin_addr, MIN(hp->h_length,sizeof(server_addr.sin_addr))); + bcopy(hp->h_addr, &server_addr.sin_addr, + MIN(hp->h_length,sizeof(server_addr.sin_addr))); server_addr.sin_family = AF_INET; server_addr.sin_port = 0; -- cgit v1.1