]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/room_functions.c
room_functions.c: remove diagnostic hex dump of recipient field
[citadel.git] / webcit-ng / server / room_functions.c
index b1135c3b6130fb60232f678ce4fde81e17938f52..a58197120664519b7607f2bbae3c93aa1d9d61b3 100644 (file)
@@ -101,17 +101,6 @@ void json_stat(struct http_transaction *h, struct ctdlsession *c) {
 }
 
 
-// remove this when finished
-void diag_hexdump_str(char *str, char *desc) {
-       printf("%s\n", desc);
-       FILE *fp = popen("hexdump -C", "w");
-       if (fp) {
-               fwrite(str, strlen(str), 1, fp);
-               pclose(fp);
-       }
-}
-
-
 // Client is requesting a mailbox summary of the current room
 void json_mailbox(struct http_transaction *h, struct ctdlsession *c) {
        char buf[1024];
@@ -122,7 +111,6 @@ void json_mailbox(struct http_transaction *h, struct ctdlsession *c) {
        ctdl_readline(c, buf, sizeof(buf));
        if (buf[0] == '1') {
                while (ctdl_readline(c, buf, sizeof(buf)), (strcmp(buf, "000"))) {
-                       diag_hexdump_str(buf, "line received from server");
                        JsonValue *jmsg = NewJsonObject(HKEY("message"));
                        JsonObjectAppend(jmsg, NewJsonNumber(HKEY("msgnum"), extract_long(buf, 0)));
                        JsonObjectAppend(jmsg, NewJsonNumber(HKEY("time"), extract_long(buf, 1)));