From 41f386f6abeff1577812a58ccd1d416a5389a85b Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 10 Jan 2008 16:18:05 +0000 Subject: some cleanup --- iminternal.c | 2 +- rsyslog.h | 8 ++++---- stream.c | 4 ++-- sync.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iminternal.c b/iminternal.c index 0432e0f2..a45fd52e 100644 --- a/iminternal.c +++ b/iminternal.c @@ -79,7 +79,7 @@ finalize_it: *ppThis = pThis; return iRet; -}; +} /* add a message to the linked list diff --git a/rsyslog.h b/rsyslog.h index 0bb8371b..a3ea9bb8 100644 --- a/rsyslog.h +++ b/rsyslog.h @@ -142,13 +142,13 @@ enum rsObjectID * invalid object pointer! */ OIDrsInvalid = 0, /**< value created by calloc(), so do not use ;) */ - /* The 0xEFCD is a debug aid. It helps us find object IDs in memory - * dumps (on X86, this is CDEF in the dump ;) + /* The 0x3412 is a debug aid. It helps us find object IDs in memory + * dumps (on X86, this is 1234 in the dump ;) * If you are on an embedded device and you would like to save space * make them 1 byte only. */ - OIDrsCStr = 0xEFCD0001, - OIDrsPars = 0xEFCD0002 + OIDrsCStr = 0x34120001, + OIDrsPars = 0x34120002 }; typedef enum rsObjectID rsObjID; diff --git a/stream.c b/stream.c index 5413f1b8..24c53313 100644 --- a/stream.c +++ b/stream.c @@ -490,8 +490,8 @@ finalize_it: DEFpropSetMeth(strm, bDeleteOnClose, int) DEFpropSetMeth(strm, iMaxFileSize, int) DEFpropSetMeth(strm, iFileNumDigits, int) -DEFpropSetMeth(strm, tOperationsMode, int); -DEFpropSetMeth(strm, tOpenMode, mode_t); +DEFpropSetMeth(strm, tOperationsMode, int) +DEFpropSetMeth(strm, tOpenMode, mode_t) rsRetVal strmSetiMaxFiles(strm_t *pThis, int iNewVal) { diff --git a/sync.h b/sync.h index fa79b66b..384c0d9c 100644 --- a/sync.h +++ b/sync.h @@ -30,7 +30,7 @@ * SYNC_OBJ_TOOL_INIT must be called upon of object construction and * SUNC_OBJ_TOOL_EXIT must be called upon object destruction */ -#define SYNC_OBJ_TOOL pthread_mutex_t *Sync_mut; +#define SYNC_OBJ_TOOL pthread_mutex_t *Sync_mut #define SYNC_OBJ_TOOL_INIT(x) SyncObjInit(&((x)->Sync_mut)) #define SYNC_OBJ_TOOL_EXIT(x) SyncObjExit(&((x)->Sync_mut)) -- cgit