git: libutil/setusercontext: Apply FreeBSD's b149798e50fac1113a7.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Jan 18 17:11:38 PST 2021


commit a319222d677dea13f749d4e60998368a0c34a29d
Author: Sascha Wildner <saw at online.de>
Date:   Tue Jan 19 01:13:16 2021 +0100

    libutil/setusercontext: Apply FreeBSD's b149798e50fac1113a7.
    
    FBSD commit msg:
    
    Fix a clang 3.5 warning about abs(3) being given an argument of type
    quad_t in setusercontext().  While here, sanitize the clamping of the
    priority value, and use the correct type for the return value of
    login_getcapnum().

Summary of changes:
 lib/libutil/login_class.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a319222d677dea13f749d4e60998368a0c34a29d


-- 
DragonFly BSD source repository



More information about the Commits mailing list