From: Art Cancro Date: Tue, 20 Sep 2011 18:37:54 +0000 (-0400) Subject: The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h X-Git-Tag: v8.01~18^2~4 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=7a00f6e42ba3af8be6d882054faa1744e7ffbf17 The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h --- diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 021caf8d0..ff87152b2 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -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 diff --git a/webcit/webcit.h b/webcit/webcit.h index cb2e19b83..432bdf516 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -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 */