svn commit: r194389 - projects/ngroups/sys/kern
Andriy Gapon
avg at freebsd.org
Thu Jun 18 10:20:40 UTC 2009
on 17/06/2009 22:40 Brooks Davis said the following:
> Author: brooks
> Date: Wed Jun 17 19:40:53 2009
> New Revision: 194389
> URL: http://svn.freebsd.org/changeset/base/194389
>
> Log:
> use MIN() instead of min() in one case.
I think 'what' was pretty obvious from the diff, 'why' is what I am curious about :-)
Just trying to learn something.
> Modified:
> projects/ngroups/sys/kern/kern_prot.c
>
> Modified: projects/ngroups/sys/kern/kern_prot.c
> ==============================================================================
> --- projects/ngroups/sys/kern/kern_prot.c Wed Jun 17 19:01:47 2009 (r194388)
> +++ projects/ngroups/sys/kern/kern_prot.c Wed Jun 17 19:40:53 2009 (r194389)
> @@ -1899,7 +1899,7 @@ cru2x(struct ucred *cr, struct xucred *x
> xcr->cr_version = XUCRED_VERSION;
> xcr->cr_uid = cr->cr_uid;
>
> - ngroups = min(cr->cr_ngroups, XU_NGROUPS);
> + ngroups = MIN(cr->cr_ngroups, XU_NGROUPS);
> xcr->cr_ngroups = ngroups;
> bcopy(cr->cr_groups, xcr->cr_groups,
> ngroups * sizeof(*cr->cr_groups));
--
Andriy Gapon
More information about the svn-src-projects
mailing list