spacing
authorreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 20:43:03 +0000 (20:43 +0000)
committerreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 20:43:03 +0000 (20:43 +0000)
usr.sbin/httpd/parse.y
usr.sbin/httpd/server.c
usr.sbin/httpd/server_fcgi.c

index 74f5a2a..add2ea7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -128,7 +128,7 @@ typedef struct {
 
 %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
@@ -373,15 +373,15 @@ fastcgi           : NO FCGI               {
                        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
@@ -427,29 +427,29 @@ dirflags  : INDEX STRING          {
                | 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;
                }
@@ -462,7 +462,7 @@ mediaopts_l : mediaopts_l mediaoptsl nl
                | mediaoptsl optnl
                ;
 
-mediaoptsl     : STRING '/' STRING                     {
+mediaoptsl     : STRING '/' STRING     {
                        if (strlcpy(media.media_type, $1,
                            sizeof(media.media_type)) >=
                            sizeof(media.media_type) ||
@@ -1026,7 +1026,7 @@ load_config(const char *filename, struct httpd *x_conf)
                                    m.media_name);
                                errors++;
                        }
-               }               
+               }
        }
 
        return (errors ? -1 : 0);
index 942917a..d52c5db 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -259,7 +259,7 @@ server_socket(struct sockaddr_storage *ss, in_port_t port,
        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)
@@ -623,7 +623,7 @@ server_log(struct client *clt, const char *msg)
                        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);
                        }
index 29a3245..3ad68fc 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -258,7 +258,7 @@ server_fcgi(struct httpd *env, struct client *clt)
            desc->http_query) != -1) {
                ret = fcgi_add_param(&param, "REQUEST_URI", str, clt);
                free(str);
-               if (ret == -1) {        
+               if (ret == -1) {
                        errstr = "failed to encode param";
                        goto fail;
                }