Pawel Jakub Dawidek c0a6ac3ff0 - 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)
2007-09-05 14:27:13 +00:00
..
2005-01-20 09:17:07 +00:00
2004-12-18 12:31:12 +00:00
2005-01-20 09:17:07 +00:00
2007-09-05 14:27:13 +00:00
2005-01-11 20:50:51 +00:00
2006-06-17 07:25:58 +00:00
2006-01-16 00:28:11 +00:00
2006-10-10 08:15:08 +00:00
2005-01-20 09:17:07 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00