> ===================================================================
> RCS file: /cvsroot/external/sane/sane-backends/backend/microtek2.c,v
> retrieving revision 1.10
> diff -u -3 -p -u -w -r1.10 microtek2.c
> --- microtek2.c       2002/05/24 22:41:34     1.10
> +++ microtek2.c       2002/10/04 13:43:40
> @@ -4389,6 +4389,8 @@ scsi_read_control_bits(Microtek2_Scanner
>      int bit;
>      int count_1s;
>  
> +    size_t n_control_bytes;
> +
>      md = ms->dev;
>  
>      DBG(30, "scsi_read_control_bits: ms=%p, fd=%d\n", ms, ms->sfd);
> @@ -4400,6 +4402,8 @@ scsi_read_control_bits(Microtek2_Scanner
>      if ( md_dump >= 2)
>          dump_area2(cmd, RCB_CMD_L, "readcontrolbits");
>  
> +    /* Avoid problems if sizeof(u_int32_t) != sizeof(size_t) */
> +    n_control_bytes = ms->n_control_bytes;
>      status = sanei_scsi_cmd(ms->sfd,
>                              cmd,
>                              sizeof(cmd),

What's the point of this one?

Reply via email to