summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-25 14:21:38 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-25 14:21:38 +0200
commit8cd79f730b5656e3d2154407b0a92d50cad7e866 (patch)
tree539b583442bd0ec62a0da35b329c1c53a93de8e1
parent1036658948230a292ceb0e7688ba05113a14800b (diff)
afb-config: Optimize boolean flags
Change-Id: I476cb5c7cd873802273f243eb3454857c8723e96 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-config.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/afb-config.h b/src/afb-config.h
index 5abf8054..c502dbc1 100644
--- a/src/afb-config.h
+++ b/src/afb-config.h
@@ -48,8 +48,8 @@ struct afb_config {
char **exec;
+ /* integers */
int httpdPort;
- int background; // run in backround mode
int cacheTimeout;
int apiTimeout;
int cntxTimeout; // Client Session Context timeout
@@ -59,8 +59,11 @@ struct afb_config {
int traceditf;
int tracesvc;
int traceevt;
- int noHttpd;
- int no_ldpaths; /* disable default ldpaths */
+
+ /* booleans */
+ unsigned no_ldpaths: 1; /* disable default ldpaths */
+ unsigned noHttpd: 1;
+ unsigned background: 1; /* run in backround mode */
};
extern struct afb_config *afb_config_parse_arguments(int argc, char **argv);