Changes open vpn exit code defines
PATCH 1/1 Changes open vpn exit code defines
From: Alexandr Kutashov <[email protected]...>
It's better to have distinct enums for more straightforward debug of exit function.
Signed-off-by Alexandr Kutashov <[email protected]...>
--- src/openvpn/error.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/openvpn/error.h +2 -2
@@ -58,8 +58,8 @@ struct gc_arena;#define OPENVPN_EXIT_STATUS_GOOD 0#define OPENVPN_EXIT_STATUS_ERROR 1 -#define OPENVPN_EXIT_STATUS_USAGE 1 -#define OPENVPN_EXIT_STATUS_CANNOT_OPEN_DEBUG_FILE 1 +#define OPENVPN_EXIT_STATUS_USAGE 2 +#define OPENVPN_EXIT_STATUS_CANNOT_OPEN_DEBUG_FILE 3/* * Special command line debugging mode.
Signature · 1 line
2.35.1
Hi,
Quoted 5 lines · Antonio Quartulli
From: Alexandr Kutashov <[email protected]...>
It's better to have distinct enums for more straightforward debug of exit function.
Signed-off-by Alexandr Kutashov <[email protected]...>
Not sure this is important. But if we do so, we should document which exit code means what (outside error.h)
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...