Changeset 13640 for trunk/ppStats/src/ppStatsStandAlone.c
- Timestamp:
- Jun 5, 2007, 9:36:41 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStatsStandAlone.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsStandAlone.c
r13628 r13640 52 52 } else { 53 53 psErrorStackPrint(stderr, "Unable to open output file %s.\n", resolved); 54 psFree(resolved); 55 status = PS_EXIT_CONFIG_ERROR; 56 goto die; 54 exit(PS_EXIT_CONFIG_ERROR); 57 55 } 58 56 psFree(resolved); … … 60 58 61 59 // Go through the FPA and do the hard work 62 psMetadata *results = ppStatsLoop(NULL, data, config); 60 psMetadata *results = ppStatsLoop(&status, NULL, data, config); 61 if (status != PS_EXIT_SUCCESS) { 62 psErrorStackPrint(stderr, "Error in stats loop.\n"); 63 exit (status); 64 } 63 65 if (psListLength(results->list) == 0) { 64 66 psErrorStackPrint(stderr, "No output.\n"); 65 psFree(results); 66 status = PS_EXIT_DATA_ERROR; 67 goto die; 67 exit (status); 68 68 } 69 69 … … 78 78 psErrorStackPrint(stderr, "Unable to generate configuration file with result.\n"); 79 79 psFree(results); 80 status = PS_EXIT_CONFIG_ERROR; 81 goto die; 80 exit(PS_EXIT_CONFIG_ERROR); 82 81 } 83 82 fprintf(outFile, "%s", output);
Note:
See TracChangeset
for help on using the changeset viewer.
