Fix for the light server.
[awesomized/libmemcached] / clients / memcat.cc
index 86ae279c8c671997ef8dbe0ddc19e1df7d6669c0..c93f1a21d7812fe63824e2879d0d283356fe7725 100644 (file)
@@ -184,7 +184,6 @@ int main(int argc, char *argv[])
 void options_parse(int argc, char *argv[])
 {
   int option_index= 0;
-  int option_rv;
 
   memcached_programs_help_st help_options[]=
   {
@@ -210,7 +209,7 @@ void options_parse(int argc, char *argv[])
 
   while (1)
   {
-    option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
+    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
     if (option_rv == -1) break;
     switch (option_rv)
     {