[linux-dvb] [PATCH] dvbtraffic tweaks

Johannes Stezenbach js at linuxtv.org
Sun Jul 10 21:26:54 CEST 2005


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




More information about the linux-dvb mailing list