diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2018-03-02 02:30:16 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2018-03-02 02:30:16 +0000 |
commit | adb35576ad0c187a50e3f247c5a2ef6a4e62dcd1 (patch) | |
tree | f2fbbc767613a3940436ddfcf1c81427d246097d /regress/usr.bin/ssh | |
parent | 120187090a82c3b189412f13e620335ebbb7e845 (diff) |
Refactor the countdown loop() to simplify it.
If we insert our offset into tlist[] and then process tlist[] like an
array we can eliminate many of the special cases and duplicate calls
in loop().
While we're at it, change struct interval and timewarn() to use time_t
to eliminate the need for some of the casting and add explicit long-long
suffixes to the constants in tlist[] to head off overflow if the code
wanders off.
With type-related input from tb@ and a style tweak from anton@.
ok tb@
Diffstat (limited to 'regress/usr.bin/ssh')
0 files changed, 0 insertions, 0 deletions