- {
- NumRelFiles=1;
- RelName = (char **) calloc (1, sizeof (char *));
- if(RelName==NULL)
- {
- printf("ERROR: Insuficient memory.\n");
- exit(2);
- }
- RelName[0]=(char *)malloc(PATH_MAX);
- if(RelName[0]==NULL)
- {
- printf("ERROR: Insuficient memory.\n");
- exit(2);
- }
- strcpy(RelName[0], argv[j]);
- }
- break;
-
- default:
- cont_par++;
- NumRelFiles++;
- RelName = (char **) realloc (RelName, NumRelFiles * sizeof (char *));
- if(RelName==NULL)
- {
- printf("ERROR: Insuficient memory.\n");
- exit(2);
- }
- RelName[NumRelFiles-1]=(char *)malloc(PATH_MAX);
- if(RelName[NumRelFiles-1]==NULL)
- {
- printf("ERROR: Insuficient memory.\n");
- exit(2);
- }
- strcpy(RelName[NumRelFiles-1], argv[j]);
- break;
- }
- }
- }
-
- if ( (cont_par<2) && (action<OPT_DUMP_SYM) )
- {
- printf("ERROR: Too few arguments.\n");
- set_options("h"); /*Show help and exit*/
- }
- else if ( (cont_par!=1) && (action>=OPT_DUMP_SYM) )
- {
- printf("ERROR: Too %s arguments.\n", cont_par<1?"few":"many");
- set_options("h"); /*Show help and exit*/
- }
+ {
+ NumRelFiles=1;
+ RelName = (char **) calloc (1, sizeof (char *));
+ if(RelName==NULL)
+ {
+ printf("ERROR: Insuficient memory.\n");
+ exit(2);
+ }
+ RelName[0]=(char *)malloc(PATH_MAX);
+ if(RelName[0]==NULL)
+ {
+ printf("ERROR: Insuficient memory.\n");
+ exit(2);
+ }
+ strcpy(RelName[0], argv[j]);
+ }
+ break;
+
+ default:
+ cont_par++;
+ NumRelFiles++;
+ RelName = (char **) realloc (RelName, NumRelFiles * sizeof (char *));
+ if(RelName==NULL)
+ {
+ printf("ERROR: Insuficient memory.\n");
+ exit(2);
+ }
+ RelName[NumRelFiles-1]=(char *)malloc(PATH_MAX);
+ if(RelName[NumRelFiles-1]==NULL)
+ {
+ printf("ERROR: Insuficient memory.\n");
+ exit(2);
+ }
+ strcpy(RelName[NumRelFiles-1], argv[j]);
+ break;
+ }
+ }
+ }
+
+ if ( (cont_par<2) && (action<OPT_DUMP_SYM) )
+ {
+ printf("ERROR: Too few arguments.\n");
+ set_options("h"); /*Show help and exit*/
+ }
+ else if ( (cont_par!=1) && (action>=OPT_DUMP_SYM) )
+ {
+ printf("ERROR: Too %s arguments.\n", cont_par<1?"few":"many");
+ set_options("h"); /*Show help and exit*/
+ }