Changeset 11842 for trunk/ippTools/src/regtool.c
- Timestamp:
- Feb 15, 2007, 3:52:15 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r11816 r11842 56 56 int main(int argc, char **argv) 57 57 { 58 psExit exit_status = PS_EXIT_SUCCESS;59 60 58 psLibInit(NULL); 61 59 62 60 pxConfig *config = p0toolConfig(NULL, argc, argv); 61 if (!config) { 62 psError(PXTOOLS_ERR_CONFIG, false, "failed to configure"); 63 goto FAIL; 64 } 63 65 64 66 switch (config->mode) { … … 79 81 psLibFinalize(); 80 82 81 exit( exit_status);83 exit(EXIT_SUCCESS); 82 84 83 85 FAIL: 84 // use the top-most error to determine the exit status85 exit_status = pxerrorGetExitStatus();86 psErrorStackPrint(stderr, "\n"); 87 int exit_status = pxerrorGetExitStatus(); 86 88 87 89 psFree(config); 88 90 pmConfigDone(); 89 psErrorStackPrint(stderr, "\n");90 91 psLibFinalize(); 91 92
Note:
See TracChangeset
for help on using the changeset viewer.
