]> code.citadel.org Git - citadel.git/blobdiff - citadel/stress.c
HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / citadel / stress.c
index 5b950ecd6746dfb019348ffdd886685a21721a61..dfb98052ccf05a4101d29f4b470f3515257f83e5 100644 (file)
@@ -67,6 +67,7 @@ char* const message =
 #include <stdio.h>
 #include <sys/types.h>
 #include <string.h>
+#include <libcitadel.h>
 #include "sysdep.h"
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
@@ -240,7 +241,7 @@ void* worker(void* data)
                }
 
                /* Post the message */
-               r = CtdlIPCPostMessage(ipc, 1, &msg, aaa);
+               r = CtdlIPCPostMessage(ipc, 1, NULL, &msg, aaa);
                if (r / 100 != 4) {
                        fprintf(stderr, "Citadel refused message entry: %s\n", aaa);
                        pthread_mutex_lock(&count_mutex);
@@ -298,6 +299,8 @@ int main(int argc, char** argv)
        int i;                  /* Counters */
        long runtime;           /* Run time for each thread */
 
+       CtdlInitBase64Table();
+
        /* Read argument list */
        for (i = 0; i < argc; i++) {
                if (!strcmp(argv[i], "-n")) {