]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
setlogincontext(): Comply to style(9)
authorOlivier Certner <olce.freebsd@certner.fr>
Thu, 25 May 2023 14:29:22 +0000 (16:29 +0200)
committerOlivier Certner <olce@FreeBSD.org>
Mon, 29 Jan 2024 21:58:07 +0000 (22:58 +0100)
commit771d5c93ab5a3fb1701d9706df2ce87d6a9da6f3
treed1b39becb983d6b3ce7a2a41b34a5091f7babb30
parentea9bd448102b938ccb8d4b484684a6ba2d934931
setlogincontext(): Comply to style(9)

Remove indentation by inverting the big 'if (lc)' and using 'return'.
Use explicit binary operators to produce booleans.

Reviewed by:            emaste, kib, dchagin
Approved by:            emaste (mentor)
MFC after:              3 days
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D40346
lib/libutil/login_class.c