Page MenuHomeFreeBSD

efivar: use bool for booleans
ClosedPublic

Authored by imp on Apr 7 2021, 5:59 AM.
Tags
None
Referenced Files
F148895899: D29621.id86942.diff
Fri, Mar 20, 8:32 PM
Unknown Object (File)
Sun, Mar 15, 2:43 PM
Unknown Object (File)
Thu, Mar 12, 10:55 AM
Unknown Object (File)
Fri, Mar 6, 1:46 PM
Unknown Object (File)
Feb 8 2026, 11:21 AM
Unknown Object (File)
Feb 8 2026, 12:45 AM
Unknown Object (File)
Jan 31 2026, 8:27 AM
Unknown Object (File)
Jan 24 2026, 8:45 PM
Subscribers
None

Details

Summary

Rather than int flags we ++, use booleans for all command line args.
No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Apr 7 2021, 5:59 AM
imp created this revision.
usr.sbin/efivar/efivar.c
388

I guess expressions like this might be why int was used? I think this should still work with bools though.

415

These are still using arithmetic expressions.

Address markj's comments. Cast the bools to ints to add them, though this 'works' today.

markj added inline comments.
usr.sbin/efivar/efivar.c
409
This revision is now accepted and ready to land.Apr 9 2021, 1:53 PM
This revision was automatically updated to reflect the committed changes.