File avifile-0.7-0.7.43-codecleanup.patch of Package avifile

--- samples/qtvidcap/kv4lsetup.cpp
+++ samples/qtvidcap/kv4lsetup.cpp
@@ -107,7 +107,7 @@
     int depth;
     struct video_capability capability;
     struct video_buffer fbuf;
-    int fd, c;
+    int fd;
     int i, n, v, found;
     int set_width, set_height, set_bpp, set_bpl;
     void* set_base = NULL;
@@ -311,7 +311,7 @@
     fbuf.depth        = set_bpp;
     fbuf.bytesperline = set_bpl;
     if (set_base != NULL)
-	fbuf.base     = (void*)((unsigned int)set_base+(unsigned int)shift);
+	fbuf.base     = (void *)((char *)set_base + shift);
 
     /* XXX bttv confuses color depth and bits/pixel */
 #ifndef X_DISPLAY_MISSING
--- samples/qtvidcap/v4lxif.cpp
+++ samples/qtvidcap/v4lxif.cpp
@@ -402,7 +402,7 @@
 	if ( vchan[i].tuners > 1 ) {
 	    avml(AVML_WARN,
 		 "v4l1: Found more than one [%d] tuner for source channel %s\n"
-                 "      Only the first tuner of channel %s will be supported!\n"
+		 "      Only the first tuner of channel %s will be supported!\n"
 		 "      This warning can be ignored...\n",
 		 vchan[i].tuners, vchan[i].name, vchan[i].name);
 	}
@@ -1118,7 +1118,7 @@
 		XF86DGAGetVideoLL(disp, DefaultScreen(disp), (int *)&base, &width, &bank, &ram );
 		if (!base)
 		    avml(AVML_WARN,
-			 "v4l1: can not allocate frame buffer base: 0x%x\n",(int)base);
+			 "v4l1: can not allocate frame buffer base: %p\n", base);
 	    }
 	}
     }
openSUSE Build Service is sponsored by