IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2007, 3:34:58 PM (19 years ago)
Author:
Paul Price
Message:

Very preliminary pass at setting exit values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImage.c

    r10215 r11454  
    1818    if (config == NULL) {
    1919        psErrorStackPrint(stderr, "Unable to parse command-line arguments.");
    20         exit(1);
     20        exit(PS_EXIT_CONFIG_ERROR);
    2121    }
    2222
     
    2626    if (options == NULL) {
    2727        psErrorStackPrint(stderr, "Unable to parse camera.");
    28         exit(1);
     28        exit(PS_EXIT_CONFIG_ERROR);
    2929    }
    3030
     
    3232    if (!ppImageLoop(config, options)) {
    3333        psErrorStackPrint(stderr, "Unable to loop over input");
    34         exit(1);
     34        exit(PS_EXIT_SYS_ERROR);
    3535    }
    3636
     
    4040    ppImageCleanup(config, options);
    4141
    42     return EXIT_SUCCESS;
     42    return PS_EXIT_SUCCESS;
    4343}
    4444
Note: See TracChangeset for help on using the changeset viewer.