diff options
Diffstat (limited to '')
-rw-r--r-- | server.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server.c b/server.c index afbf238..e3261be 100644 --- a/server.c +++ b/server.c @@ -75,13 +75,11 @@ static enum kcgi_err request(struct kreq *req) { } int main(int argc, char *argv[]) { - bool fastCGI = false; bool test = false; - for (int opt; 0 < (opt = getopt(argc, argv, "cfl:pr:s:"));) { + for (int opt; 0 < (opt = getopt(argc, argv, "cl:pr:s:"));) { switch (opt) { break; case 'c': test = true; - break; case 'f': fastCGI = true; break; case 'l': pageLimit = strtol(optarg, NULL, 10); break; case 'p': pagePublic = true; break; case 'r': pageRecent = strtol(optarg, NULL, 10); @@ -118,7 +116,7 @@ int main(int argc, char *argv[]) { if (test) return EX_OK; - if (fastCGI) { + if (khttp_fcgi_test()) { struct kfcgi *fcgi; enum kcgi_err error = khttp_fcgi_init( &fcgi, Keys, KeysLen, Pages, PagesLen, Networks |