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.11~436 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=28138c561e67821aa7d3f7cd433e4bae2e1c2d61;hp=5dd116cf07d991263431624a735698374c6fb692 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 e64dbc32d..7ed8df240 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -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 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 */