File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ #include <limits.h>
1
2
#include <stdio.h>
2
3
#include <stdlib.h>
3
4
#include <string.h>
@@ -62,14 +63,17 @@ static void print_usage(const char *argv0) {
62
63
63
64
static void print_version () { puts (VERSION ); }
64
65
65
- #define CLI_OPTIONS_ID_SOCKET_GROUP -42
66
- #define CLI_OPTIONS_ID_VMNET_MODE -43
67
- #define CLI_OPTIONS_ID_VMNET_INTERFACE -44
68
- #define CLI_OPTIONS_ID_VMNET_GATEWAY -45
69
- #define CLI_OPTIONS_ID_VMNET_DHCP_END -46
70
- #define CLI_OPTIONS_ID_VMNET_MASK -47
71
- #define CLI_OPTIONS_ID_VMNET_INTERFACE_ID -48
72
- #define CLI_OPTIONS_ID_VMNET_NAT66_PREFIX -50
66
+ enum {
67
+ CLI_OPTIONS_ID_SOCKET_GROUP = CHAR_MAX + 1 ,
68
+ CLI_OPTIONS_ID_VMNET_MODE ,
69
+ CLI_OPTIONS_ID_VMNET_INTERFACE ,
70
+ CLI_OPTIONS_ID_VMNET_GATEWAY ,
71
+ CLI_OPTIONS_ID_VMNET_DHCP_END ,
72
+ CLI_OPTIONS_ID_VMNET_MASK ,
73
+ CLI_OPTIONS_ID_VMNET_INTERFACE_ID ,
74
+ CLI_OPTIONS_ID_VMNET_NAT66_PREFIX ,
75
+ };
76
+
73
77
struct cli_options * cli_options_parse (int argc , char * argv []) {
74
78
struct cli_options * res = calloc (1 , sizeof (* res ));
75
79
if (res == NULL ) {
You can’t perform that action at this time.
0 commit comments