Page MenuHomeFreeBSD

tzsetup(8): Refactoring
ClosedPublic

Authored by asiciliano on Apr 9 2022, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 9:50 PM
Unknown Object (File)
Wed, Oct 9, 2:46 AM
Unknown Object (File)
Sep 28 2024, 1:37 AM
Unknown Object (File)
Sep 26 2024, 10:57 PM
Unknown Object (File)
Sep 25 2024, 9:35 PM
Unknown Object (File)
Sep 19 2024, 12:59 AM
Unknown Object (File)
Sep 11 2024, 7:10 AM
Unknown Object (File)
Sep 5 2024, 5:46 AM
Subscribers

Details

Summary

Little refactoring to complete the conversion to bsddialog(3), not functional changes:

  • Delete: remaining code for autosizing using BSDDIALOG_AUTOSIZE.
  • Add: constants to delete magical numbers and avoiding unclear return values.
  • Delete: redundant 'conf.button.defaultno=false', performed by bsddialog_initconf()
  • Add: a new function message_zoneinfo_file() to merge features.
Test Plan

Not functional changes, just some constant and a trivial function.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

other than a small remark, it looks good to me

usr.sbin/tzsetup/tzsetup.c
607

maybe add some parenthesis for libility ?

This revision is now accepted and ready to land.Apr 10 2022, 6:39 AM
asiciliano marked an inline comment as done.
asiciliano retitled this revision from tzsetup(8): (little) Refactoring to tzsetup(8): Refactoring.
asiciliano edited the summary of this revision. (Show Details)
asiciliano edited the test plan for this revision. (Show Details)

Fixed, thanks!

This revision now requires review to proceed.Apr 10 2022, 12:36 PM
usr.sbin/tzsetup/tzsetup.c
607

fixed

This revision is now accepted and ready to land.Apr 11 2022, 6:51 AM