get_media_devices: fix a typo and remove an unused var
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 13:54:00 +0000 (10:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 13:54:00 +0000 (10:54 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/libmedia_dev/get_media_devices.h
utils/v4l2-sysfs-path/v4l2-sysfs-path.c

index 51d1d18..c56f8ff 100644 (file)
@@ -68,7 +68,7 @@ void *discover_media_devices(void);
  * strings, feeing the list requires also to free those data. So,
  * the safest and recommended way is to call this function.
  */
-void free_media_device(void *opaque);
+void free_media_devices(void *opaque);
 
 /**
  * display_media_devices() - prints a list of media devices
index 676698e..4b38566 100644 (file)
@@ -29,8 +29,7 @@
 
 int main(void)
 {
-       struct media_devices *md;
-       unsigned int size = 0;
+       void *md;
        char *alsa;
 
        md = discover_media_devices();