Push down inclusion of input.h
Pass the third-party buffer as an independent parameter to decode_alarm()
Wrap a long line.
Sort #includes
Remove unnecessary parameter of draw_keys().
Remove unnecessary parameter of statusbar().
Set the time (if requested) in mainloop() instead of a frontend.

Add a function get_mainloop_result() to fetch the result of setting the time.
Make mainloop() return nothing now that we have get_mainloop_result().
Put an else clause onto its own line.
Convert a mvdelch() into a wmove(), the entire end-of-line will be erased.
Only display results from mainloop when there are any.