From 44d17186036901e9e43ca9ddab52b2534944d515 Mon Sep 17 00:00:00 2001 From: faulty Date: Sun, 22 Feb 2026 10:26:46 -0500 Subject: [PATCH] Added anti-stupidity message during startup --- src/bridge/BridgeMain.cpp | 4 +++- src/fne/FNEMain.cpp | 4 +++- src/host/HostMain.cpp | 4 +++- src/patch/PatchMain.cpp | 4 +++- src/peered/PeerEdMain.cpp | 2 ++ src/remote/RESTClientMain.cpp | 2 ++ src/sysview/SysViewMain.cpp | 2 ++ src/tged/TGEdMain.cpp | 2 ++ 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/bridge/BridgeMain.cpp b/src/bridge/BridgeMain.cpp index 4a28a92b..dd6087a6 100644 --- a/src/bridge/BridgeMain.cpp +++ b/src/bridge/BridgeMain.cpp @@ -100,6 +100,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -221,6 +222,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } @@ -320,4 +322,4 @@ int main(int argc, char** argv) return ret; } -#endif \ No newline at end of file +#endif diff --git a/src/fne/FNEMain.cpp b/src/fne/FNEMain.cpp index 29374645..f91f2ea8 100644 --- a/src/fne/FNEMain.cpp +++ b/src/fne/FNEMain.cpp @@ -92,6 +92,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -162,6 +163,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } @@ -255,4 +257,4 @@ int main(int argc, char** argv) return ret; } -#endif \ No newline at end of file +#endif diff --git a/src/host/HostMain.cpp b/src/host/HostMain.cpp index 2d1680f5..17ca0f8e 100644 --- a/src/host/HostMain.cpp +++ b/src/host/HostMain.cpp @@ -108,6 +108,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -242,6 +243,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } @@ -343,4 +345,4 @@ int main(int argc, char** argv) return ret; } -#endif \ No newline at end of file +#endif diff --git a/src/patch/PatchMain.cpp b/src/patch/PatchMain.cpp index 187ded4f..75280dff 100644 --- a/src/patch/PatchMain.cpp +++ b/src/patch/PatchMain.cpp @@ -87,6 +87,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2025-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -146,6 +147,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2025-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } @@ -227,4 +229,4 @@ int main(int argc, char** argv) return ret; } -#endif \ No newline at end of file +#endif diff --git a/src/peered/PeerEdMain.cpp b/src/peered/PeerEdMain.cpp index f034ecfe..2097a3f0 100644 --- a/src/peered/PeerEdMain.cpp +++ b/src/peered/PeerEdMain.cpp @@ -69,6 +69,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -136,6 +137,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } diff --git a/src/remote/RESTClientMain.cpp b/src/remote/RESTClientMain.cpp index 83833c99..b57e182b 100644 --- a/src/remote/RESTClientMain.cpp +++ b/src/remote/RESTClientMain.cpp @@ -180,6 +180,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2024 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -370,6 +371,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } diff --git a/src/sysview/SysViewMain.cpp b/src/sysview/SysViewMain.cpp index 8deeb53c..edda315a 100644 --- a/src/sysview/SysViewMain.cpp +++ b/src/sysview/SysViewMain.cpp @@ -1060,6 +1060,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -1145,6 +1146,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); } diff --git a/src/tged/TGEdMain.cpp b/src/tged/TGEdMain.cpp index ab7e96af..44fa88c2 100644 --- a/src/tged/TGEdMain.cpp +++ b/src/tged/TGEdMain.cpp @@ -69,6 +69,7 @@ void usage(const char* message, const char* arg) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (message != nullptr) { ::fprintf(stderr, "%s: ", g_progExe.c_str()); ::fprintf(stderr, message, arg); @@ -136,6 +137,7 @@ int checkArgs(int argc, char* argv[]) ::fprintf(stdout, __PROG_NAME__ " %s (built %s)\r\n", __VER__, __BUILD__); ::fprintf(stdout, "Copyright (c) 2017-2026 Bryan Biedenkapp, N2PLL and DVMProject (https://github.com/dvmproject) Authors.\n"); ::fprintf(stdout, "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\n\n"); + ::fprintf(stdout, "THIS SOFTWARE MUST NEVER BE USED IN PUBLIC SAFETY OR LIFE SAFETY CRITICAL APPLICATIONS!\n\n"); if (argc == 2) exit(EXIT_SUCCESS); }