CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2018/12/01 16:35:59
Modified files: usr.sbin/apmd : apmd.c Log message: Use strtonum(3) for -t seconds, improve errors on invalid number input Base 10 suffices, negative numbers should be invalid (not converted) and zero not treated specially. This also unifies error messages and removes unnecessary EINVAL from them since strtonum()'s errstr is explicit enough already. Feedback and OK martjin, tb