CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2019/07/22 11:20:06
Modified files: sbin/dhclient : clparse.c dhcpd.h parse.c Log message: 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.