]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
audit(8): leave unsigned comparison for last.
authorpfg <pfg@FreeBSD.org>
Fri, 8 Apr 2016 03:26:21 +0000 (03:26 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 8 Apr 2016 03:26:21 +0000 (03:26 +0000)
commit99e1acfb71cd0afb9426daa85e3e274c091a9bb0
treebfb1f35bd80a2b2b617d0e8e0a666fa55c1b1b45
parentb11db0106389f678ff146b18f3526adb1b9675cd
audit(8): leave unsigned comparison for last.

aq64_minfree is unsigned so comparing to find out if it is less
than zero is a nonsense. Move the comparison to the last position
as we don't want to spend time if any of the others triggers first.

hile it would be tempting to just remove it, it may be important to
keep  it for portability with platforms where may be signed(?) or
in case we may want to change it in the future.
sys/security/audit/audit_syscalls.c