[linux-dvb] [PATCH] dvbtraffic tweaks

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

 



On Mon, Jul 04, 2005 at 09:32:59PM +0100, Joe Orton wrote:
> Patch below adds -a and -d support to dvbtraffic and a little more error 
> handling.

>  	while (1) {
> +		unsigned char buffer[BSIZE];
>  		int pid, r, ok;
> -		if ((r = read(fd, buffer, 188)) <= 0) {
> +		ssize_t r;

This did not compile:
dvbtraffic.c:102: error: redeclaration of 'r' with no linkage
dvbtraffic.c:101: error: previous declaration of 'r' was here
dvbtraffic.c:101: warning: unused variable 'r'

I fixed it up and comitted the patch.

Thanks,
Johannes



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux