]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/ctdl_commands.c
Added -Wno-format-truncation to the CFLAGS to make it shut up about calls to snprintf...
[citadel.git] / webcit-ng / ctdl_commands.c
index e10ade2af7db753f4801f5fef7f4fe7208cdaa10..d50885be977a8043cc88f69da48fa585ed9fed76 100644 (file)
 #include "webcit.h"
 
 
-/*
- * /ctdl/c/info returns a JSON representation of the output of an INFO command.
- */
-void serv_info(struct http_transaction *h, struct ctdlsession *c)
-{
+// /ctdl/c/info returns a JSON representation of the output of an INFO command.
+void serv_info(struct http_transaction *h, struct ctdlsession *c) {
        char buf[1024];
 
        ctdl_printf(c, "INFO");
@@ -93,11 +90,8 @@ void serv_info(struct http_transaction *h, struct ctdlsession *c)
 }
 
 
-/*
- * Dispatcher for paths starting with /ctdl/c/
- */
-void ctdl_c(struct http_transaction *h, struct ctdlsession *c)
-{
+// Dispatcher for paths starting with /ctdl/c/
+void ctdl_c(struct http_transaction *h, struct ctdlsession *c) {
        if (!strcasecmp(h->uri, "/ctdl/c/info")) {
                serv_info(h, c);
        } else {