From be504746f18848d00fc72f30e12e94676730a438 Mon Sep 17 00:00:00 2001 From: Avi Date: Fri, 27 Jan 2023 21:16:16 +1000 Subject: [PATCH 1/2] Fix #76, Replace exit(1) with preferred macro EXIT_FAILURE --- cfe_ts_crc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cfe_ts_crc.c b/cfe_ts_crc.c index d08b59a..02bacc1 100644 --- a/cfe_ts_crc.c +++ b/cfe_ts_crc.c @@ -114,7 +114,7 @@ int main(int argc, char **argv) { printf("%s\n", CFE_TS_CRC_VERSION_STRING); printf("\nUsage: cfe_ts_crc [filename]\n"); - exit(1); + exit(EXIT_FAILURE); } /* Set to skip the header (116 bytes) */ skipSize = sizeof(CFE_FS_Header_t) + sizeof(CFE_TBL_File_Hdr_t); @@ -125,7 +125,7 @@ int main(int argc, char **argv) { printf("\ncfe_ts_crc error: can't open input file!\n"); perror(argv[1]); - exit(1); + exit(EXIT_FAILURE); } /* seek past the number of bytes requested */ offsetReturn = lseek(fd, skipSize, SEEK_SET); @@ -133,7 +133,7 @@ int main(int argc, char **argv) { printf("\ncfe_ts_crc error: lseek failed!\n"); printf("%s\n", strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } /* read the input file 100 bytes at a time */ @@ -144,7 +144,7 @@ int main(int argc, char **argv) { printf("\ncfe_ts_crc error: file read failed!\n"); printf("%s\n", strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } fileCRC = CalculateCRC(buffer, readSize, fileCRC); fileSize += readSize; @@ -160,7 +160,7 @@ int main(int argc, char **argv) { printf("\nerror: Cannot close file!\n"); printf("%s\n", strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } return 0; From 1bf28d1264a89bc090b4255cfd945cf4bafcc47d Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 27 Feb 2023 09:14:16 -0500 Subject: [PATCH 2/2] Bump to v1.3.0-rc4+dev28 --- CHANGELOG.md | 6 +++++- cfe_ts_crc_version.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2273f9..2fe9f81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## Development Build: v1.3.0+rc4+dev24 +## Develop,ent Build: v1.3.0-rc4+dev28 +- Replace exit(1) with preferred macro EXIT_FAILURE +- See + +## Development Build: v1.3.0-rc4+dev24 - Create CHANGELOG.md - See diff --git a/cfe_ts_crc_version.h b/cfe_ts_crc_version.h index 5fee077..a5d60f6 100644 --- a/cfe_ts_crc_version.h +++ b/cfe_ts_crc_version.h @@ -29,7 +29,7 @@ /* * Development Build Macro Definitions */ -#define CFE_TS_CRC_BUILD_NUMBER 24 /*!< @brief Number of commits since baseline */ +#define CFE_TS_CRC_BUILD_NUMBER 28 /*!< @brief Number of commits since baseline */ #define CFE_TS_CRC_BUILD_BASELINE \ "v1.3.0-rc4+dev" /*!< @brief Development Build: git tag that is the base for the current */