]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
* Reworked some of the data structures to handle multiple recipients
[citadel.git] / citadel / citserver.c
index e9573ad588489b0284feea018bc1251db4924eeb..c61944d938ef597058d291965776d7a3cf5d7217 100644 (file)
@@ -254,6 +254,25 @@ void CtdlAllocUserData(unsigned long requested_sym, size_t num_bytes)
 }
 
 
+/* 
+ * Change the size of a buffer allocated with CtdlAllocUserData()
+ */
+void CtdlReallocUserData(unsigned long requested_sym, size_t num_bytes)
+{
+       struct CtdlSessData *ptr;
+
+       for (ptr = CC->FirstSessData; ptr != NULL; ptr = ptr->next)  {
+               if (ptr->sym_id == requested_sym) {
+                       ptr->sym_data = reallok(ptr->sym_data, num_bytes);
+                       return;
+               }
+       }
+
+       lprintf(2, "CtdlReallocUserData() ERROR: symbol %ld not found!\n",
+               requested_sym);
+}
+
+