chiark / gitweb /
tests for cache.c
[disorder] / server / cgimain.c
index 9be0d1be727d2c3048778f3ca4f389f882717712..1abc5a4b1156bb61302738467d542e700b715ad0 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <config.h>
+#include "types.h"
 
 #include <stdio.h>
 #include <errno.h>
@@ -45,12 +46,11 @@ int main(int argc, char **argv) {
   dcgi_state s;
   cgi_sink output;
 
-  mem_init(0);
   if(argc > 0) progname = argv[0];
   cgi_parse();
   if((conf = getenv("DISORDER_CONFIG"))) configfile = xstrdup(conf);
   if(getenv("DISORDER_DEBUG")) debugging = 1;
-  if(config_read()) exit(EXIT_FAILURE);
+  if(config_read(0)) exit(EXIT_FAILURE);
   memset(&g, 0, sizeof g);
   memset(&s, 0, sizeof s);
   s.g = &g;
@@ -77,4 +77,3 @@ c-basic-offset:2
 comment-column:40
 End:
 */
-/* arch-tag:1c8016a19d7f117427c184c8aadf1bba */