Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[codacy] Reduce scope for variables.
[simgrid.git] / teshsuite / smpi / privatization / privatization.c
index 25668c8..df6b5f5 100644 (file)
@@ -7,14 +7,12 @@
 static int myvalue = 0;
 static void test_opts(int* argc, char **argv[]){
   int found = 0;
-  int ret;
   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;