Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-socket: Fix address reuse
[src/app-framework-binder.git]
/
src
/
afs-config.c
diff --git
a/src/afs-config.c
b/src/afs-config.c
index
71d5ab7
..
70a6d47
100644
(file)
--- a/
src/afs-config.c
+++ b/
src/afs-config.c
@@
-114,7
+114,7
@@
static AFB_options cliOptions[] = {
{SET_AUTH_TOKEN, 1, "token", "Initial Secret [default=" AFS_SUPERVISOR_TOKEN ", use --token="" to allow any token]"},
{SET_AUTH_TOKEN, 1, "token", "Initial Secret [default=" AFS_SUPERVISOR_TOKEN ", use --token="" to allow any token]"},
- {WS_SERVICE, 1, "ws-server", "Povide supervisor as websocket"},
+ {WS_SERVICE, 1, "ws-server", "P
r
ovide supervisor as websocket"},
{DISPLAY_VERSION, 0, "version", "Display version and copyright"},
{DISPLAY_HELP, 0, "help", "Display this help"},
{DISPLAY_VERSION, 0, "version", "Display version and copyright"},
{DISPLAY_HELP, 0, "help", "Display this help"},
@@
-263,11
+263,11
@@
static void parse_arguments(int argc, char **argv, struct afs_config *config)
while ((optc = getopt_long(argc, argv, shortopts, gnuOptions, NULL)) != EOF) {
switch (optc) {
case SET_VERBOSE:
while ((optc = getopt_long(argc, argv, shortopts, gnuOptions, NULL)) != EOF) {
switch (optc) {
case SET_VERBOSE:
- verbos
ity++
;
+ verbos
e_inc()
;
break;
case SET_QUIET:
break;
case SET_QUIET:
- verbos
ity--
;
+ verbos
e_dec()
;
break;
case SET_TCP_PORT:
break;
case SET_TCP_PORT:
@@
-441,7
+441,7
@@
struct afs_config *afs_config_parse_arguments(int argc, char **argv)
parse_environment(result);
parse_arguments(argc, argv, result);
fulfill_config(result);
parse_environment(result);
parse_arguments(argc, argv, result);
fulfill_config(result);
- if (verbos
ity >= 3
)
+ if (verbos
e_wants(Log_Level_Info)
)
afs_config_dump(result);
return result;
}
afs_config_dump(result);
return result;
}