Skip to contentSkip to conversation

Changes open vpn exit code defines

PATCH In review Antonio Quartulli 2 participants 2 messages Sep 17, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 src/openvpn/error.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/openvpn/error.h +2 -2
index 89adb3e6..6289c0d8 100644
@@ -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
#1 lore raw

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.

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]...