diff --git a/src/necronda-server.c b/src/necronda-server.c index a8d36de..8f5a7c4 100644 --- a/src/necronda-server.c +++ b/src/necronda-server.c @@ -179,7 +179,7 @@ int main(int argc, const char *argv[]) { fprintf(stderr, ERR_STR "Unable to parse argument %s, usage: --webroot " CLR_STR "\n", arg); return 1; } - webroot = argv[++i]; + webroot_base = argv[++i]; } else if ((len == 2 && strncmp(arg, "-c", 2) == 0) || (len == 6 && strncmp(arg, "--cert", 6) == 0)) { if (i == argc - 1) { fprintf(stderr, ERR_STR "Unable to parse argument %s, usage: --cert " CLR_STR "\n", arg); @@ -198,7 +198,7 @@ int main(int argc, const char *argv[]) { } } - if (webroot == NULL) { + if (webroot_base == NULL) { fprintf(stderr, ERR_STR "Error: --webroot is missing" CLR_STR "\n"); return 1; } diff --git a/src/necronda-server.h b/src/necronda-server.h index 73d9d24..a7cf175 100644 --- a/src/necronda-server.h +++ b/src/necronda-server.h @@ -54,7 +54,7 @@ pid_t CHILDREN[MAX_CHILDREN]; FILE *parent_stdout, *parent_stderr; -const char *cert_file, *key_file, *webroot; +const char *cert_file, *key_file, *webroot_base; typedef struct { int enc:1;