Use enum number for val of long options (#1155)

This commit is contained in:
anonymous-contributor
2017-02-01 12:53:20 +08:00
committed by Max Lv
parent c0030f0d7d
commit a3d0f02c3e
6 changed files with 155 additions and 142 deletions
+12
View File
@@ -161,6 +161,18 @@ extern int use_syslog;
#endif // if ANDROID
/* Vals for long options */
enum { GETOPT_VAL_HELP = 257,
GETOPT_VAL_FAST_OPEN,
GETOPT_VAL_ACL,
GETOPT_VAL_MTU,
GETOPT_VAL_MPTCP,
GETOPT_VAL_PLUGIN,
GETOPT_VAL_PLUGIN_OPTS,
GETOPT_VAL_MANAGER_ADDRESS,
GETOPT_VAL_EXECUTABLE
};
void ERROR(const char *s);
char *ss_itoa(int i);