Page MenuHomeFreeBSD

libgssapi: modernize static string array use
ClosedPublic

Authored by brooks on Sep 29 2020, 8:21 PM.
Tags
None
Referenced Files
F171309157: D26592.id.diff
Thu, Sep 10, 7:46 AM
Unknown Object (File)
Wed, Sep 9, 10:14 PM
Unknown Object (File)
Sun, Sep 6, 2:47 PM
Unknown Object (File)
Sat, Sep 5, 6:40 AM
Unknown Object (File)
Sat, Sep 5, 12:41 AM
Unknown Object (File)
Fri, Sep 4, 5:25 AM
Unknown Object (File)
Wed, Sep 2, 11:01 PM
Unknown Object (File)
Wed, Sep 2, 4:59 AM
Subscribers

Details

Summary

Use designated initializers to document positions in the arrays rather
than requiring counting. Use nitems() rather than rolling it by hand to
count elements.

Also, passify a Clang 12 warning about suspcious string concatenation
within an array initializer by adding parentheses.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33883
Build 31091: arc lint + arc unit

Event Timeline

brooks created this revision.
emaste added inline comments.
lib/libgssapi/gss_display_status.c
134

If I were king of style(9) I would take an over-80-cols line vs relying on string concatenation; parens here make me stop and think for a second before accepting that the meaning is clear. Since I'm not the king of style, no objection.

This revision is now accepted and ready to land.Sep 29 2020, 9:56 PM
This revision was automatically updated to reflect the committed changes.