The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 20 Sep 2011 18:37:54 +0000 (14:37 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 18 Oct 2011 18:56:46 +0000 (20:56 +0200)
libcitadel/lib/libcitadel.h
webcit/webcit.h

index e64dbc32d1adbb1b1b2c239d79244ffcebd5c504..7ed8df24006b06910a73aec627de558779a5cc61 100644 (file)
@@ -629,4 +629,8 @@ extern ConstStr RoomNetCfgStrs[maxRoomNetCfg];
 /* Convenience function to "perform a function and cut a log record if result != 0" */
 #define CtdlLogResult(x) if (x) syslog(LOG_CRIT, "%s:%d %s", __FILE__, __LINE__, strerror(errno))
 
+/* a nice consistent place to define how we turn a message id into a thread id hash */
+#define ThreadIdHash(Buf) abs(HashLittle(ChrPtr(Buf), StrLength(Buf)))
+
+
 #endif // LIBCITADEL_H
index cb2e19b83e49688e317a123801a77912f4777e48..432bdf516eabe5b3aa950a0c17e0e91a46d5b4f1 100644 (file)
@@ -818,9 +818,6 @@ void http_datestring(char *buf, size_t n, time_t xtime);
 
 extern int time_to_die;                        /* Nonzero if server is shutting down */
 
-/* a nice consistent place to define how we turn a message id into a thread id hash */
-#define ThreadIdHash(Buf) abs(HashLittle(ChrPtr(Buf), StrLength(Buf)))
-
 /* 
  * Array type for a blog post.  The first message is the post; the rest are comments
  */