]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
error.c: remove unused crash() function
authorLev Stipakov <lev@openvpn.net>
Sat, 13 Aug 2022 21:20:40 +0000 (00:20 +0300)
committerGert Doering <gert@greenie.muc.de>
Sun, 14 Aug 2022 08:45:42 +0000 (10:45 +0200)
This has been added in 2006 and as of now not used.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220813212040.113-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24924.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/error.c
src/openvpn/error.h

index 7cd35b170ec2139a711704f4113d3cb4549a4b58..c8c77358ea7348146b7439895fb3ad7965dcfa5c 100644 (file)
@@ -808,15 +808,6 @@ msg_flags_string(const unsigned int flags, struct gc_arena *gc)
     return BSTR(&out);
 }
 
-#ifdef ENABLE_DEBUG
-void
-crash(void)
-{
-    char *null = NULL;
-    *null = 0;
-}
-#endif
-
 #ifdef _WIN32
 
 const char *
index 972619fe8d35bedfb760d7c2885838f482afdcd9..89adb3e6e0f48f6a99b95249033da836d9fb971a 100644 (file)
@@ -220,11 +220,6 @@ __attribute__((__noreturn__))
     [!!sizeof(struct { int __error_if_negative : (expr) ? 2 : -1; })]
 #endif
 
-#ifdef ENABLE_DEBUG
-void crash(void);  /* force a segfault (debugging only) */
-
-#endif
-
 /* Inline functions */
 
 static inline bool