HomeFreeBSD

setlogincontext(): Comply to style(9)

Description

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)

Details

Provenance
olceAuthored on May 25 2023, 2:29 PM
Reviewer
emaste
Differential Revision
D40346: setlogincontext(): Comply to style(9)
Parents
rGbbbe9b4c641c: login.conf(5): Document umask's special value 'inherit'
Branches
Unknown
Tags
Unknown