summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/httpd.c b/httpd.c
index 8a20c89..a7396e8 100644
--- a/httpd.c
+++ b/httpd.c
@@ -75,7 +75,7 @@ xs_str *nodeinfo_2_0(void)
75 int n_posts = 0; 75 int n_posts = 0;
76 xs *users = user_list(); 76 xs *users = user_list();
77 xs_list *p = users; 77 xs_list *p = users;
78 char *v; 78 const char *v;
79 double now = (double)time(NULL); 79 double now = (double)time(NULL);
80 80
81 while (xs_list_iter(&p, &v)) { 81 while (xs_list_iter(&p, &v)) {
@@ -128,7 +128,7 @@ static xs_str *greeting_html(void)
128 const char *host = xs_dict_get(srv_config, "host"); 128 const char *host = xs_dict_get(srv_config, "host");
129 xs *list = user_list(); 129 xs *list = user_list();
130 xs_list *p = list; 130 xs_list *p = list;
131 xs_str *uid; 131 const xs_str *uid;
132 132
133 xs_html *ul = xs_html_tag("ul", 133 xs_html *ul = xs_html_tag("ul",
134 xs_html_attr("class", "snac-user-list")); 134 xs_html_attr("class", "snac-user-list"));
@@ -413,7 +413,7 @@ void httpd_connection(FILE *f)
413 /* if there are any additional headers, add them */ 413 /* if there are any additional headers, add them */
414 const xs_dict *more_headers = xs_dict_get(srv_config, "http_headers"); 414 const xs_dict *more_headers = xs_dict_get(srv_config, "http_headers");
415 if (xs_type(more_headers) == XSTYPE_DICT) { 415 if (xs_type(more_headers) == XSTYPE_DICT) {
416 char *k, *v; 416 const char *k, *v;
417 int c = 0; 417 int c = 0;
418 while (xs_dict_next(more_headers, &k, &v, &c)) 418 while (xs_dict_next(more_headers, &k, &v, &c))
419 headers = xs_dict_set(headers, k, v); 419 headers = xs_dict_set(headers, k, v);
@@ -590,7 +590,8 @@ static void *background_thread(void *arg)
590 590
591 { 591 {
592 xs *list = user_list(); 592 xs *list = user_list();
593 char *p, *uid; 593 char *p;
594 const char *uid;
594 595
595 /* process queues for all users */ 596 /* process queues for all users */
596 p = list; 597 p = list;