]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static.c
Put the site name and room name in the top header bar
[citadel.git] / webcit-ng / static.c
index eb5d9c185eb9972a2c294496825141163ac9d313..bd8d3cda8efdea826dd4c0d832f2d9ae787f8e65 100644 (file)
 #include "webcit.h"
 
 
-/*
- * Called from perform_request() to handle the /ctdl/s/ prefix -- always static content.
- */
-void output_static(struct http_transaction *h)
-{
+// Called from perform_request() to handle the /ctdl/s/ prefix -- always static content.
+void output_static(struct http_transaction *h) {
        char filename[PATH_MAX];
        struct stat statbuf;
 
@@ -42,7 +39,8 @@ void output_static(struct http_transaction *h)
        h->response_body = malloc(h->response_body_length);
        if (h->response_body != NULL) {
                fread(h->response_body, h->response_body_length, 1, fp);
-       } else {
+       }
+       else {
                h->response_body_length = 0;
        }
        fclose(fp);             // Content is now in memory.