Changeset 23992 for trunk/ppSkycell/src/ppSkycell.c
- Timestamp:
- Apr 28, 2009, 3:31:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSkycell/src/ppSkycell.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSkycell/src/ppSkycell.c
r23982 r23992 5 5 #include <stdio.h> 6 6 #include <pslib.h> 7 #include <psmodules.h> 8 9 #include "ppSkycell.h" 7 10 8 11 int main(int argc, char *argv[]) … … 11 14 if (!data) { 12 15 psErrorStackPrint(stderr, "Unable to initialise."); 13 exit(PS_EXIT_CONFIG_ERROR);16 return PS_EXIT_CONFIG_ERROR; 14 17 } 15 18 … … 17 20 psErrorStackPrint(stderr, "Unable to parse arguments."); 18 21 psFree(data); 19 exit(PS_EXIT_CONFIG_ERROR);22 return PS_EXIT_CONFIG_ERROR; 20 23 } 21 24 25 if (!ppSkycellCamera(data)) { 26 psErrorStackPrint(stderr, "Unable to parse camera configuration."); 27 psFree(data); 28 return PS_EXIT_CONFIG_ERROR; 29 } 22 30 31 if (!ppSkycellLoop(data)) { 32 psErrorStackPrint(stderr, "Unable to process data."); 33 psFree(data); 34 return PS_EXIT_DATA_ERROR; 35 } 23 36 37 psFree(data); 38 39 return PS_EXIT_SUCCESS; 40 } 41
Note:
See TracChangeset
for help on using the changeset viewer.
