Re: [PATCH] read returns a ssize_t.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 06 April 2008, James Youngman wrote:
> @@ -338,7 +338,8 @@ dooutput() {
>  			break;
>  		if (tflg) {
>  			newtime = tv.tv_sec + (double) tv.tv_usec / 1000000;
> -			fprintf(stderr, "%f %i\n", newtime - oldtime, cc);
> +			fprintf(stderr, "%f %lu\n", newtime - oldtime,
> +				(unsigned long)cc);
>  			oldtime = newtime;
>  		}
>  		wrt = write(1, obuf, cc);

casts suck.  just use the right modifier (z) for size_t types.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux