Philip Blundell (Philip.Blundell@pobox.com)
Sat, 20 Dec 1997 18:44:14 +0000
>A little fix:
>
>
>- if (lp_register(count, port))
>- if (++count == LP_NO)
>- break;
A better fix would be to change that to "if (lp_register(...) == 0)" and
arrange for lp_register to return an error code when something goes wrong (eg
parport_register_device() fails).
p.
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:13 EST