-/* $OpenBSD: parse.y,v 1.18 2014/08/03 11:16:10 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.19 2014/08/03 20:43:03 reyk Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
%token AUTO COMMON COMBINED CONNECTION DIRECTORY FCGI INDEX LISTEN LOCATION
%token LOG NO ON PORT PREFORK ROOT SERVER SOCKET TYPES
-%token ERROR INCLUDE
+%token ERROR INCLUDE
%token <v.string> STRING
%token <v.number> NUMBER
%type <v.port> port
srv->srv_conf.flags &= ~SRVFLAG_FCGI;
srv->srv_conf.flags |= SRVFLAG_NO_FCGI;
}
- | FCGI {
+ | FCGI {
srv->srv_conf.flags &= ~SRVFLAG_NO_FCGI;
srv->srv_conf.flags |= SRVFLAG_FCGI;
}
- | FCGI {
+ | FCGI {
srv->srv_conf.flags &= ~SRVFLAG_NO_FCGI;
srv->srv_conf.flags |= SRVFLAG_FCGI;
} '{' fcgiflags_l '}'
- | FCGI {
+ | FCGI {
srv->srv_conf.flags &= ~SRVFLAG_NO_FCGI;
srv->srv_conf.flags |= SRVFLAG_FCGI;
} fcgiflags
| AUTO INDEX {
srv->srv_conf.flags &= ~SRVFLAG_NO_AUTO_INDEX;
srv->srv_conf.flags |= SRVFLAG_AUTO_INDEX;
- }
+ }
| NO AUTO INDEX {
srv->srv_conf.flags &= ~SRVFLAG_AUTO_INDEX;
srv->srv_conf.flags |= SRVFLAG_NO_AUTO_INDEX;
}
;
-logformat : LOG COMMON {
+logformat : LOG COMMON {
srv->srv_conf.flags &= ~SRVFLAG_NO_LOG;
srv->srv_conf.flags |= SRVFLAG_LOG;
srv->srv_conf.logformat = LOG_FORMAT_COMMON;
}
- | LOG COMBINED {
+ | LOG COMBINED {
srv->srv_conf.flags &= ~SRVFLAG_NO_LOG;
srv->srv_conf.flags |= SRVFLAG_LOG;
srv->srv_conf.logformat = LOG_FORMAT_COMBINED;
}
- | LOG CONNECTION {
+ | LOG CONNECTION {
srv->srv_conf.flags &= ~SRVFLAG_NO_LOG;
srv->srv_conf.flags |= SRVFLAG_LOG;
srv->srv_conf.logformat = LOG_FORMAT_CONNECTION;
}
- | NO LOG {
+ | NO LOG {
srv->srv_conf.flags &= ~SRVFLAG_LOG;
srv->srv_conf.flags |= SRVFLAG_NO_LOG;
}
| mediaoptsl optnl
;
-mediaoptsl : STRING '/' STRING {
+mediaoptsl : STRING '/' STRING {
if (strlcpy(media.media_type, $1,
sizeof(media.media_type)) >=
sizeof(media.media_type) ||
m.media_name);
errors++;
}
- }
+ }
}
return (errors ? -1 : 0);
-/* $OpenBSD: server.c,v 1.23 2014/08/03 10:26:44 reyk Exp $ */
+/* $OpenBSD: server.c,v 1.24 2014/08/03 20:43:03 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
if (reuseport) {
val = 1;
if (setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &val,
- sizeof(int)) == -1)
+ sizeof(int)) == -1)
goto bad;
}
if (fcntl(s, F_SETFL, O_NONBLOCK) == -1)
log_cb = log_debug;
if (EVBUFFER_LENGTH(clt->clt_log)) {
while ((ptr =
- evbuffer_readline(clt->clt_log)) != NULL) {
+ evbuffer_readline(clt->clt_log)) != NULL) {
log_info("%s", ptr);
free(ptr);
}
-/* $OpenBSD: server_fcgi.c,v 1.16 2014/08/03 20:39:40 reyk Exp $ */
+/* $OpenBSD: server_fcgi.c,v 1.17 2014/08/03 20:43:03 reyk Exp $ */
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
desc->http_query) != -1) {
ret = fcgi_add_param(¶m, "REQUEST_URI", str, clt);
free(str);
- if (ret == -1) {
+ if (ret == -1) {
errstr = "failed to encode param";
goto fail;
}