svn commit: r188434 - projects/quota64/lib/libutil

Dag-Erling Smørgrav des at des.no
Wed Feb 11 03:20:21 PST 2009


Kirk McKusick <mckusick at FreeBSD.org> writes:
> @@ -231,7 +231,7 @@ quota_write32(struct quotafile *qf, cons
>  	off = id * sizeof(struct dqblk32);
>  	if (lseek(qf->fd, off, SEEK_SET) == -1)
>  		return (-1);
> -	return (write(qf->fd, &dqb32, sizeof(dqb32)));
> +	return (write(qf->fd, &dqb32, sizeof(dqb32)) == -1);
>  }
>  
>  static int

I would prefer -1 for failure and 0 for success...

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-projects mailing list