diff --git a/fsw/mcp750-vxworks/src/cfe_psp_support.c b/fsw/mcp750-vxworks/src/cfe_psp_support.c index f973e544..43977eeb 100644 --- a/fsw/mcp750-vxworks/src/cfe_psp_support.c +++ b/fsw/mcp750-vxworks/src/cfe_psp_support.c @@ -102,7 +102,7 @@ void CFE_PSP_Restart(uint32 reset_type) void CFE_PSP_Panic(int32 ErrorCode) { printf("%s called with error code = 0x%08X. Exiting.\n", __func__, (unsigned int)ErrorCode); - exit(-1); /* Need to improve this */ + exit(EXIT_FAILURE); } /*---------------------------------------------------------------- diff --git a/fsw/pc-linux/src/cfe_psp_start.c b/fsw/pc-linux/src/cfe_psp_start.c index 71e83b48..2141aa9d 100644 --- a/fsw/pc-linux/src/cfe_psp_start.c +++ b/fsw/pc-linux/src/cfe_psp_start.c @@ -531,7 +531,7 @@ void CFE_PSP_DisplayUsage(char *Name) printf(" %s --reset PO --subtype 1 --cpuid 1 --cpuname CPU1 --scid 32\n", Name); printf(" \n"); - exit(1); + exit(EXIT_FAILURE); } /****************************************************************************** diff --git a/fsw/pc-linux/src/cfe_psp_support.c b/fsw/pc-linux/src/cfe_psp_support.c index 422e5876..0fa3b0f8 100644 --- a/fsw/pc-linux/src/cfe_psp_support.c +++ b/fsw/pc-linux/src/cfe_psp_support.c @@ -117,7 +117,7 @@ void CFE_PSP_Panic(int32 ErrorCode) { OS_printf("%s called with error code = 0x%08X. Exiting.\n", __func__, (unsigned int)ErrorCode); OS_printf("The cFE could not start.\n"); - abort(); /* abort() is preferable to exit(-1), as it may create a core file for debug */ + abort(); /* abort() is preferable to exit(EXIT_FAILURE), as it may create a core file for debug */ } /*---------------------------------------------------------------- diff --git a/fsw/pc-rtems/src/cfe_psp_support.c b/fsw/pc-rtems/src/cfe_psp_support.c index 06b11a8b..642ce8b3 100644 --- a/fsw/pc-rtems/src/cfe_psp_support.c +++ b/fsw/pc-rtems/src/cfe_psp_support.c @@ -75,7 +75,7 @@ void CFE_PSP_Restart(uint32 reset_type) { CFE_PSP_FlushCaches(1, PcRtems_ReservedMemBlock.BlockPtr, PcRtems_ReservedMemBlock.BlockSize); OS_printf("%s is not implemented on this platform ( yet ! )\n", __func__); - exit(-1); + exit(EXIT_FAILURE); } /*----------------------------------------------------------------