Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[codacy] Reduce scope for variables.
[simgrid.git] / teshsuite / smpi / privatization / privatization.c
index 9a9e963..df6b5f5 100644 (file)
@@ -6,14 +6,13 @@
 
 static int myvalue = 0;
 static void test_opts(int* argc, char **argv[]){
-  int found = 0, ret;
+  int found = 0;
   static struct option long_options[] = {
   {"long",     no_argument, 0,  0 },
   {0,         0,                 0,  0 }
   };
   while (1) {
-    ret = getopt_long_only(*argc, *argv, "s",
-                long_options, NULL);
+    int ret = getopt_long_only(*argc, *argv, "s", long_options, NULL);
     if(ret==-1)
       break;