From 28138c561e67821aa7d3f7cd433e4bae2e1c2d61 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 20 Sep 2011 14:37:54 -0400 Subject: [PATCH] The definition of ThreadIdHash() has been moved from webcit.h to libcitadel.h --- libcitadel/lib/libcitadel.h | 4 ++++ webcit/webcit.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.30.2