chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report unreadable tracks and dirs
[disorder]
/
server
/
cgimain.c
diff --git
a/server/cgimain.c
b/server/cgimain.c
index 467ed59b618dc1fd84d6d52e7ae5b6e5acbb40c2..1abc5a4b1156bb61302738467d542e700b715ad0 100644
(file)
--- a/
server/cgimain.c
+++ b/
server/cgimain.c
@@
-19,6
+19,7
@@
*/
#include <config.h>
*/
#include <config.h>
+#include "types.h"
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
@@
-49,7
+50,7
@@
int main(int argc, char **argv) {
cgi_parse();
if((conf = getenv("DISORDER_CONFIG"))) configfile = xstrdup(conf);
if(getenv("DISORDER_DEBUG")) debugging = 1;
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;
memset(&g, 0, sizeof g);
memset(&s, 0, sizeof s);
s.g = &g;