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
..
2007-09-05 14:27:13 +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