Acked-by: Hugh Greenberg <[EMAIL PROTECTED]>
On Mon, 2008-10-06 at 18:50 -0600, Abhishek Kulkarni wrote:
> read returns ssize_t.
> while reading special files (from procfs) bytes_read was returned as a
> random huge number
>
> Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>
>
> Index: crc32.c
> ===================================================================
> --- crc32.c (revision 710)
> +++ crc32.c (working copy)
> @@ -90,7 +90,7 @@
> {
> u8 *buf, *p=NULL;
> u32 crc=~0U;
> - u64 totalbytes, bytes_read;
> + ssize_t totalbytes, bytes_read;
>
> totalbytes = bytes_read = 0;
> if (!( buf = sp_malloc(CRC_MAX_READ)))
>
>