From 4c03a91eb6c5e39b1eb8d31fda4d9bfd13d9ae19 Mon Sep 17 00:00:00 2001 From: David Hill Date: Sun, 14 May 2006 17:10:42 +0000 Subject: add ()'s to improve readability. ok ray --- usr.sbin/quotaon/quotaon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/quotaon') 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; -- cgit v1.2.3