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)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 20 Sep 2011 18:37:54 +0000 (14:37 -0400)
libcitadel/lib/libcitadel.h
webcit/webcit.h

index 021caf8d08fc2acd0cb17532e92d07c64560836b..ff87152b2fddba66ae7fc70aff72631cf215e748 100644 (file)
@@ -609,4 +609,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
  */