summaryrefslogtreecommitdiffstats
path: root/obj-types.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-14 17:53:35 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-14 17:53:35 +0000
commitec27ea55f38d78fd97c80f8554870693a96be332 (patch)
treef1b13978cda52a0353d13fd3b4ac304407a659ba /obj-types.h
parent16eba18af23dad76e717ae9fde5dfea31ce6f2aa (diff)
downloadrsyslog-ec27ea55f38d78fd97c80f8554870693a96be332.tar.gz
rsyslog-ec27ea55f38d78fd97c80f8554870693a96be332.tar.xz
rsyslog-ec27ea55f38d78fd97c80f8554870693a96be332.zip
begin disk assisted queue memory queue modes (not fully implemented yet)
Diffstat (limited to 'obj-types.h')
-rw-r--r--obj-types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/obj-types.h b/obj-types.h
index 350bc95b..94651e6e 100644
--- a/obj-types.h
+++ b/obj-types.h
@@ -99,8 +99,8 @@ typedef struct obj { /* the dummy struct that each derived class can be casted t
unsigned int iObjCooCKiE; /* prevent name conflict, thus the strange name */
# define ISOBJ_assert(pObj) \
{ \
- assert(pObj != NULL); \
- assert((unsigned) pObj->iObjCooCKiE == (unsigned) 0xBADEFEE); \
+ assert((pObj) != NULL); \
+ assert((unsigned) ((obj_t*)(pObj))->iObjCooCKiE == (unsigned) 0xBADEFEE); \
}
# define ISOBJ_TYPE_assert(pObj, objType) \
{ \