IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12992


Ignore:
Timestamp:
Apr 24, 2007, 11:45:24 AM (19 years ago)
Author:
Paul Price
Message:

Fixing following change to API for pmConfigFileSetsMD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroArguments.c

    r12806 r12992  
    77
    88    if (argc == 1) {
    9         psError(PSASTRO_ERR_ARGUMENTS, true, "No arguments supplied");
    10         psErrorStackPrint(stderr, "exit");
    11         return NULL;
     9        psError(PSASTRO_ERR_ARGUMENTS, true, "No arguments supplied");
     10        psErrorStackPrint(stderr, "exit");
     11        return NULL;
    1212    }
    1313
     
    1616    if (config == NULL) {
    1717        psError(PSASTRO_ERR_CONFIG, false, "Can't read site configuration");
    18         psErrorStackPrint(stderr, "exit");
     18        psErrorStackPrint(stderr, "exit");
    1919        return NULL;
    2020    }
     
    5858    }
    5959
    60     status = pmConfigFileSetsMD (config->arguments, config, "INPUT", "-file", "-list");
     60    status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list");
    6161    if (!status) {
    62         psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)");
    63         psErrorStackPrint(stderr, "exit");
    64         return NULL;
     62        psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)");
     63        psErrorStackPrint(stderr, "exit");
     64        return NULL;
    6565    }
    66    
     66
    6767    if (argc != 2) {
    68         psError(PSASTRO_ERR_ARGUMENTS, true, "Incorrect arguments supplied");
    69         psErrorStackPrint(stderr, "exit");
    70         return NULL;
     68        psError(PSASTRO_ERR_ARGUMENTS, true, "Incorrect arguments supplied");
     69        psErrorStackPrint(stderr, "exit");
     70        return NULL;
    7171    }
    72    
     72
    7373    // output positions is fixed
    7474    psMetadataAddStr (config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "", argv[1]);
Note: See TracChangeset for help on using the changeset viewer.