]> 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>
Thu, 1 Feb 2024 21:23:23 +0000 (22:23 +0100)
commit6843f1c2ef08822dab352101decb69f9f6e1cae8
tree9083ff46f3bf00a170a3df318fd11d72733b6b08
parent569f0eb3f259d9870429c8b014154dea728e5f00
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

(cherry picked from commit 771d5c93ab5a3fb1701d9706df2ce87d6a9da6f3)

Approved by:            markj (mentor)
lib/libutil/login_class.c