aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index fb3129f0b..b083d645c 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -98,8 +98,8 @@
98# define PIPE_BUF 4096 98# define PIPE_BUF 4096
99#endif 99#endif
100 100
101static const char default_path_httpd_conf[] = "/etc"; 101static const char default_path_httpd_conf[] ALIGN1 = "/etc";
102static const char httpd_conf[] = "httpd.conf"; 102static const char httpd_conf[] ALIGN1 = "httpd.conf";
103 103
104#define TIMEOUT 60 104#define TIMEOUT 60
105 105
@@ -202,9 +202,9 @@ struct globals {
202 ContentLength = -1; \ 202 ContentLength = -1; \
203} while (0) 203} while (0)
204 204
205static const char request_GET[] = "GET"; /* size algorithmic optimize */ 205static const char request_GET[] ALIGN1 = "GET"; /* size algorithmic optimize */
206 206
207static const char* const suffixTable [] = { 207static const char *const suffixTable[] = {
208/* Warning: shorted equivalent suffix in one line must be first */ 208/* Warning: shorted equivalent suffix in one line must be first */
209 ".htm.html", "text/html", 209 ".htm.html", "text/html",
210 ".jpg.jpeg", "image/jpeg", 210 ".jpg.jpeg", "image/jpeg",
@@ -288,7 +288,7 @@ static const HttpEnumString httpResponseNames[] = {
288}; 288};
289 289
290 290
291static const char RFC1123FMT[] = "%a, %d %b %Y %H:%M:%S GMT"; 291static const char RFC1123FMT[] ALIGN1 = "%a, %d %b %Y %H:%M:%S GMT";
292 292
293 293
294#define STRNCASECMP(a, str) strncasecmp((a), (str), sizeof(str)-1) 294#define STRNCASECMP(a, str) strncasecmp((a), (str), sizeof(str)-1)
@@ -1268,7 +1268,7 @@ static int sendCgi(const char *url,
1268 * <cr><lf> pair here. We will output "200 OK" line 1268 * <cr><lf> pair here. We will output "200 OK" line
1269 * if needed, but CGI still has to provide blank line 1269 * if needed, but CGI still has to provide blank line
1270 * between header and body */ 1270 * between header and body */
1271 static const char HTTP_200[] = "HTTP/1.0 200 OK\r\n"; 1271 static const char HTTP_200[] ALIGN1 = "HTTP/1.0 200 OK\r\n";
1272 1272
1273 /* Must use safe_read, not full_read, because 1273 /* Must use safe_read, not full_read, because
1274 * CGI may output a few first bytes and then wait 1274 * CGI may output a few first bytes and then wait
@@ -1343,9 +1343,9 @@ static int sendCgi(const char *url,
1343static int sendFile(const char *url) 1343static int sendFile(const char *url)
1344{ 1344{
1345 char * suffix; 1345 char * suffix;
1346 int f; 1346 int f;
1347 const char * const * table; 1347 const char *const *table;
1348 const char * try_suffix; 1348 const char *try_suffix;
1349 1349
1350 suffix = strrchr(url, '.'); 1350 suffix = strrchr(url, '.');
1351 1351