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-08-22 01:56:35 +00:00
2006-09-17 21:27:35 +00:00
2007-06-10 19:06:09 +00:00
2007-05-24 20:28:14 +00:00
2007-05-24 22:10:22 +00:00
2007-04-09 01:45:30 +00:00
2007-04-09 01:45:30 +00:00
2007-09-05 14:27:13 +00:00
2006-03-23 14:09:21 +00:00