[sane-devel] Fix for infinte for loop
stef
stef.dev at free.fr
Sat Jul 9 04:38:27 UTC 2011
Le vendredi 8 juillet 2011 11:09:15 Hans Petter Selasky, vous avez écrit :
> --- /sane-backends-1.0.21/backend/genesys_gl646.c.orig 2011-07-08
> 11:07:05.000000000 +0200 +++ /sane-backends-1.0.21/backend/genesys_gl646.c
> 2011-07-08 11:07:47.000000000 +0200 @@ -3068,9 +3068,10 @@
> /* loop until head parked */
> if (wait_until_home)
> {
> - int loop = 0;
> + int loop;
>
> - while (loop < 3) /* do not wait longer then 30 seconds */
> + /* do not wait longer then 30 seconds */
> + for (loop = 0; loop < 300; loop++)
> {
> status = sanei_genesys_get_status (dev, &val);
> if (status != SANE_STATUS_GOOD)
>
> I'm not suscribed to this list. Please keep me CC'ed.
>
> --HPS
Hello,
may I have more details ? On which hardware do you see this ? Why are you
patching SANE 1.0.21 and not 1.0.22 ?
Regards,
Stef
More information about the sane-devel
mailing list