diff options
author | David Hill <dhill@cvs.openbsd.org> | 2006-05-14 17:10:42 +0000 |
---|---|---|
committer | David Hill <dhill@cvs.openbsd.org> | 2006-05-14 17:10:42 +0000 |
commit | 4c03a91eb6c5e39b1eb8d31fda4d9bfd13d9ae19 (patch) | |
tree | 57275c6f4cb0e605b8ef2e4a44edfdc13dced484 /usr.sbin/quotaon | |
parent | cd6b1652e71e3a0d16208e252d9890f9f5e333f4 (diff) |
add ()'s to improve readability.
ok ray
Diffstat (limited to 'usr.sbin/quotaon')
-rw-r--r-- | usr.sbin/quotaon/quotaon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c index 7c7a4e244b2..31707b9388d 100644 --- a/usr.sbin/quotaon/quotaon.c +++ b/usr.sbin/quotaon/quotaon.c @@ -38,7 +38,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: quotaon.c,v 1.20 2003/07/18 22:58:56 david Exp $"; +static char *rcsid = "$Id: quotaon.c,v 1.21 2006/05/14 17:10:41 dhill Exp $"; #endif /* not lint */ /* @@ -213,7 +213,7 @@ hasquota(struct fstab *fs, int type, char **qfnamep, int force) } strlcpy(buf, fs->fs_mntops, sizeof buf); for (opt = strtok(buf, ","); opt; opt = strtok(NULL, ",")) { - if (cp = strchr(opt, '=')) + if ((cp = strchr(opt, '=')) != NULL) *cp++ = '\0'; if (type == USRQUOTA && strcmp(opt, usrname) == 0) break; |