mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
The old code was just fine, but gcc doesn't understand that max_brightness is initialized. Let's rework it a bit to move some logic to the main function. Now get_max_brightness() just retrieves and parses the attribute, and the main function decides what to do with it.