Skip to contentSkip to conversation

xl:Remove unused variable verbose in info function

PATCH New Yang Hongyang 1 participant 1 message Apr 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl:Remove unused variable verbose in info function

Remove unused variable verbose in info function

tools/libxl/xl.c +3 -4
diff -r c87ec146229a tools/libxl/xl.c
@@ -2720,7 +2720,7 @@
     return;
 }
 
-void info(int verbose)
+void info(void)
 {
     output_nodeinfo();
 
@@ -2735,9 +2735,8 @@
 
 void main_info(int argc, char **argv)
 {
-    int opt, verbose;
+    int opt;
 
-    verbose = 0;
     while ((opt = getopt(argc, argv, "h")) != -1) {
         switch (opt) {
         case 'h':
@@ -2749,7 +2748,7 @@
         }
     }
 
-    info(verbose);
+    info();
     exit(0);
 }
 
Signature · 2 lines
Regards
Yang Hongyang