summaryrefslogtreecommitdiffabout
path: root/src
Unidiff
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/fastcgi.cc1
-rw-r--r--src/plaincgi.cc1
-rw-r--r--src/util.cc2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/fastcgi.cc b/src/fastcgi.cc
index 63b59f8..641ae46 100644
--- a/src/fastcgi.cc
+++ b/src/fastcgi.cc
@@ -1,15 +1,16 @@
1#include <unistd.h> 1#include <unistd.h>
2#include <sys/types.h> 2#include <sys/types.h>
3#include <sys/stat.h> 3#include <sys/stat.h>
4#include <cstring>
4#include <fastcgi.h> 5#include <fastcgi.h>
5#include "kingate/fastcgi.h" 6#include "kingate/fastcgi.h"
6#include "kingate/exception.h" 7#include "kingate/exception.h"
7 8
8namespace kingate { 9namespace kingate {
9 10
10 bool fcgi_socket::_initialized = false; 11 bool fcgi_socket::_initialized = false;
11 12
12 fcgi_socket::fcgi_socket(const char *s,int bl) 13 fcgi_socket::fcgi_socket(const char *s,int bl)
13 : sock(-1) { 14 : sock(-1) {
14 if(!_initialized) { 15 if(!_initialized) {
15 if( FCGX_Init() ) 16 if( FCGX_Init() )
diff --git a/src/plaincgi.cc b/src/plaincgi.cc
index 1cb7dc6..3a82d33 100644
--- a/src/plaincgi.cc
+++ b/src/plaincgi.cc
@@ -1,15 +1,16 @@
1#include <unistd.h> 1#include <unistd.h>
2#include <sys/types.h> 2#include <sys/types.h>
3#include <sys/stat.h> 3#include <sys/stat.h>
4#include <cstring>
4#include "kingate/plaincgi.h" 5#include "kingate/plaincgi.h"
5#include "kingate/exception.h" 6#include "kingate/exception.h"
6#include "config.h" 7#include "config.h"
7 8
8#if !HAVE_DECL_ENVIRON 9#if !HAVE_DECL_ENVIRON
9extern char **environ; 10extern char **environ;
10#endif /* HAVE_DECL_ENVIRON */ 11#endif /* HAVE_DECL_ENVIRON */
11 12
12namespace kingate { 13namespace kingate {
13 14
14 plaincgi_interface::plaincgi_interface() { 15 plaincgi_interface::plaincgi_interface() {
15 for(char **p = environ; *p; p++) { 16 for(char **p = environ; *p; p++) {
diff --git a/src/util.cc b/src/util.cc
index 48e486a..82a4a0a 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -1,12 +1,14 @@
1#include <cstdlib>
2#include <cstring>
1#include "kingate/util.h" 3#include "kingate/util.h"
2#include "kingate/exception.h" 4#include "kingate/exception.h"
3 5
4namespace kingate { 6namespace kingate {
5 7
6 static const char *safeChars = 8 static const char *safeChars =
7 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 9 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
8 "abcdefghijklmnopqrstuvwxyz" 10 "abcdefghijklmnopqrstuvwxyz"
9 "0123456789" 11 "0123456789"
10 "_-" ; 12 "_-" ;
11 13
12 string url_encode(const string& str) { 14 string url_encode(const string& str) {