summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-10 16:18:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-10 16:18:05 +0000
commit41f386f6abeff1577812a58ccd1d416a5389a85b (patch)
tree3ee569097d9a3ca4edb6c7bad3aef801215ffa69
parenta244eb773908fa1f86a61ab52f2cad6224017e88 (diff)
downloadrsyslog-41f386f6abeff1577812a58ccd1d416a5389a85b.tar.gz
rsyslog-41f386f6abeff1577812a58ccd1d416a5389a85b.tar.xz
rsyslog-41f386f6abeff1577812a58ccd1d416a5389a85b.zip
some cleanup
-rw-r--r--iminternal.c2
-rw-r--r--rsyslog.h8
-rw-r--r--stream.c4
-rw-r--r--sync.h2
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))