shithub: libdvdcss

Download patch

ref: 2fc9238f7fabd783cf681d14d2d9058071da4796
parent: dacda2a5596a9a956e7b192c87f9ab8eedb72c43
author: Diego Biurrun <diego@biurrun.de>
date: Thu Feb 14 11:16:41 EST 2013

dvd_region: Drop unused-but-set variable

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -246,12 +246,11 @@
 
 int main(int argc, char *argv[])
 {
-  char device_name[FILENAME_MAX], c, set, get, region = 0;
+  char device_name[FILENAME_MAX], c, set, region = 0;
   int fd, ret;
 
   strcpy(device_name, DEFAULT_DEVICE);
   set = 0;
-  get = 1;
   while( (c = getopt(argc, argv, "d:sr:h?")) != EOF ) {
     switch( c ) {
     case 'd':