K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-09-05T14:27:13.000000Z K 7 svn:log V 210 - Fix strange for loop. Reported by: phk - While here, check the unit before calculating the actually number. This way we can return EINVAL for invalid unit instead of ERANGE. Approved by: re (kensmith) END