summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/switchd.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2019-07-22 17:20:06 +0000
committerkrw <krw@openbsd.org>2019-07-22 17:20:06 +0000
commit5ff9fc9cacf4b408491f394f7232a23780eeb0a0 (patch)
tree3edbd5bb69e3cef08569540c1037194db1d241d7 /usr.sbin/switchd/switchd.c
parentCorrect minor style nit in sys_getdents() for consistency, missing parens around (diff)
downloadwireguard-openbsd-5ff9fc9cacf4b408491f394f7232a23780eeb0a0.tar.xz
wireguard-openbsd-5ff9fc9cacf4b408491f394f7232a23780eeb0a0.zip
Cleanup/simplify parse_number():
1) Restructure to explicitly set a long long result and take the desired low/high constraints for strtonum(). 2) No need to use a temporary variable when setting long long (a.k.a. time_t) fields. 3) Fewer magic numbers when processing integer valued option data. Less memcpy()'ing where a cast or two is sufficient to make integer assignment work. No intentional functional change.
Diffstat (limited to 'usr.sbin/switchd/switchd.c')
0 files changed, 0 insertions, 0 deletions