war on BSD style curly braces
[citadel.git] / citadel / modules / network / serv_netspool.c
index 5ddd1976e293f2550e2691d721bbd38a3cbb510a..5055eabfa0bd9230a4bad7355dac7426c03b1b74 100644 (file)
@@ -2,7 +2,7 @@
  * This module handles shared rooms, inter-Citadel mail, and outbound
  * mailing list processing.
  *
- * Copyright (c) 2000-2018 by the citadel.org team
+ * Copyright (c) 2000-2020 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License, version 3.
@@ -146,24 +146,6 @@ int HaveSpoolConfig(OneRoomNetCfg* RNCfg)
        return interested;
 }
 
-void Netmap_AddMe(struct CtdlMessage *msg, const char *defl, long defllen)
-{
-       long node_len;
-       char buf[SIZ];
-
-       /* prepend our node to the path */
-       if (CM_IsEmpty(msg, eMessagePath)) {
-               CM_SetField(msg, eMessagePath, defl, defllen);
-       }
-       node_len = strlen(CtdlGetConfigStr("c_nodename"));
-       if (node_len >= SIZ) 
-               node_len = SIZ - 1;
-       memcpy(buf, CtdlGetConfigStr("c_nodename"), node_len);
-       buf[node_len] = '!';
-       buf[node_len + 1] = '\0';
-       CM_PrependToField(msg, eMessagePath, buf, node_len + 1);
-}
-
 
 void InspectQueuedRoom(SpoolControl **pSC,
                       RoomProcList *room_to_spool,     
@@ -235,7 +217,7 @@ void CalcListID(SpoolControl *sc)
 #define MAX_LISTIDLENGTH 150
 
        // Load the room banner as the list description
-       struct CtdlMessage *msg = CtdlFetchMessage(sc->room.msgnum_info, 1, 1);
+       struct CtdlMessage *msg = CtdlFetchMessage(sc->room.msgnum_info, 1);
         if (msg != NULL) {
                CC->redirect_buffer = NewStrBufPlain(NULL, SIZ);
                 CtdlOutputPreLoadedMsg(msg, MT_CITADEL, HEADERS_NONE, 0, 0, 0);