changeset 29389:912e642ffb95

Move some variable declarations up to avoid the warnings: vidix/ivtv_vid.c: In function 'ivtv_probe': vidix/ivtv_vid.c:305: warning: ISO C90 forbids mixed declarations and code vidix/ivtv_vid.c: In function 'ivtv_query_fourcc': vidix/ivtv_vid.c:405: warning: ISO C90 forbids mixed declarations and code
author diego
date Sun, 19 Jul 2009 20:59:32 +0000
parents 91d8313a6d17
children 80c32e67306c
files vidix/ivtv_vid.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/ivtv_vid.c	Sun Jul 19 17:05:42 2009 +0000
+++ b/vidix/ivtv_vid.c	Sun Jul 19 20:59:32 2009 +0000
@@ -231,6 +231,8 @@
 	pciinfo_t lst[MAX_PCI_DEVICES];
 	int err = 0;
 	unsigned int i, num_pci = 0;
+	unsigned char yuv_device_number = 48, yuv_device = 48 + fb_number;
+	char yuv_device_name[] = "/dev/videoXXX\0";
 
 	if(verbose)
 		printf(IVTV_MSG"probe\n");
@@ -302,9 +304,6 @@
 	}
 
 	/* Try to find YUV device */
-	unsigned char yuv_device_number = 48, yuv_device = 48 + fb_number;
-	char yuv_device_name[] = "/dev/videoXXX\0";
-
 	do {
 		sprintf(yuv_device_name, "/dev/video%u", yuv_device);
 		yuvdev = open(yuv_device_name, O_RDWR);
@@ -399,10 +398,11 @@
 
 int ivtv_query_fourcc(vidix_fourcc_t *to)
 {
+	int supports = 0;
+
 	if(ivtv_verbose)
 		printf(IVTV_MSG"query fourcc (%x)\n", to->fourcc);
 
-	int supports = 0;
 	switch(to->fourcc)
 	{
 	case IMGFMT_YV12: