Renamed webroot to webroot_base

This commit is contained in:
2020-12-13 15:34:39 +01:00
parent 99328996fa
commit 7c5a57b3d8
2 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ int main(int argc, const char *argv[]) {
fprintf(stderr, ERR_STR "Unable to parse argument %s, usage: --webroot <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 <CERT-FILE>" 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;
}

View File

@ -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;