fix dlen
[citadel.git] / textclient / rooms.c
index 4d78a1080d989dddfbf06b819b40c600d6546a61..81ece7f72ef299945947a7e5da4af4491baa52b2 100644 (file)
@@ -2,8 +2,7 @@
 //
 // Copyright (c) 1987-2023 by the citadel.org team
 //
-// This program is open source software.  Use, duplication, or disclosure
-// is subject to the terms of the GNU General Public License, version 3.
+// This program is open source software.  Use, duplication, or disclosure is subject to the GNU General Public License version 3.
 
 #include "textclient.h"
 
@@ -285,7 +284,7 @@ void knrooms(CtdlIPC * ipc, int kn_floor_mode) {
 void listzrooms(CtdlIPC * ipc) {       // list public forgotten rooms
        struct march *listing = NULL;
        struct march *mptr;
-       int r;                          // IPC response code
+       int r;                  // IPC response code
        char buf[SIZ];
 
 
@@ -467,7 +466,8 @@ void editthisroom(CtdlIPC * ipc) {
        attr->QRfloor = select_floor(ipc, attr->QRfloor);
        attr->QRflags = set_room_attr(ipc, attr->QRflags, "Private room", QR_PRIVATE);
        if (attr->QRflags & QR_PRIVATE) {
-               attr->QRflags = set_room_attr(ipc, attr->QRflags, "Hidden room (accessible to anyone who knows the room name)", QR_GUESSNAME);
+               attr->QRflags =
+                   set_room_attr(ipc, attr->QRflags, "Hidden room (accessible to anyone who knows the room name)", QR_GUESSNAME);
        }
 
        // if it's public, clear the privacy classes
@@ -498,7 +498,8 @@ void editthisroom(CtdlIPC * ipc) {
        attr->QRflags = set_room_attr(ipc, attr->QRflags, "Read-only room", QR_READONLY);
        attr->QRflags2 = set_room_attr(ipc, attr->QRflags2, "Allow message deletion by anyone who can post", QR2_COLLABDEL);
        attr->QRflags = set_room_attr(ipc, attr->QRflags, "Permanent room", QR_PERMANENT);
-       attr->QRflags2 = set_room_attr(ipc, attr->QRflags2, "Subject Required (Force users to specify a message subject)", QR2_SUBJECTREQ);
+       attr->QRflags2 =
+           set_room_attr(ipc, attr->QRflags2, "Subject Required (Force users to specify a message subject)", QR2_SUBJECTREQ);
        attr->QRflags = set_room_attr(ipc, attr->QRflags, "Directory room", QR_DIRECTORY);
        if (attr->QRflags & QR_DIRECTORY) {
                strprompt("Directory name", attr->QRdirname, 14);
@@ -774,7 +775,7 @@ void download(CtdlIPC * ipc, int proto) {
        tpipe = fopen(tempname, "wb");
        if (fwrite(file, filelen, 1, tpipe) < filelen) {
                // FIXME: restart syscall on EINTR 
-                  // broken = 1;
+               // broken = 1;
        }
        fclose(tpipe);
        if (file)