summaryrefslogtreecommitdiffstats
path: root/runtime/obj.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-27 10:10:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-27 10:10:47 +0200
commitd4518082362afebef9400bcbf46e38228de83bf1 (patch)
tree2c33a18b7a5b45832bdf945d3ba7819404135760 /runtime/obj.c
parentb5faa3c4cef4d8a076a2de9953806ea90c9052d7 (diff)
downloadrsyslog-d4518082362afebef9400bcbf46e38228de83bf1.tar.gz
rsyslog-d4518082362afebef9400bcbf46e38228de83bf1.tar.xz
rsyslog-d4518082362afebef9400bcbf46e38228de83bf1.zip
reduced number of compile warnings in -pedantic gcc mode
Diffstat (limited to 'runtime/obj.c')
-rw-r--r--runtime/obj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/obj.c b/runtime/obj.c
index af59a955..9c7656c5 100644
--- a/runtime/obj.c
+++ b/runtime/obj.c
@@ -423,7 +423,7 @@ finalize_it:
/* define a helper to make code below a bit cleaner (and quicker to write) */
-#define NEXTC CHKiRet(strmReadChar(pStrm, &c))//;dbgprintf("c: %c\n", c);
+#define NEXTC CHKiRet(strmReadChar(pStrm, &c))/*;dbgprintf("c: %c\n", c)*/
/* de-serialize an embedded, non-octect-counted string. This is useful
@@ -803,7 +803,7 @@ Deserialize(void *ppObj, uchar *pszTypeExpected, strm_t *pStrm, rsRetVal (*fFixu
}
} while(iRetLocal != RS_RET_OK);
- if(rsCStrSzStrCmp(pstrID, pszTypeExpected, strlen((char*)pszTypeExpected))) // TODO: optimize strlen() - caller shall provide
+ if(rsCStrSzStrCmp(pstrID, pszTypeExpected, strlen((char*)pszTypeExpected))) /* TODO: optimize strlen() - caller shall provide */
ABORT_FINALIZE(RS_RET_INVALID_OID);
CHKiRet(FindObjInfo(pstrID, &pObjInfo));
@@ -827,7 +827,7 @@ Deserialize(void *ppObj, uchar *pszTypeExpected, strm_t *pStrm, rsRetVal (*fFixu
finalize_it:
if(iRet != RS_RET_OK && pObj != NULL)
- free(pObj); // TODO: check if we can call destructor 2008-01-13 rger
+ free(pObj); /* TODO: check if we can call destructor 2008-01-13 rger */
if(pstrID != NULL)
rsCStrDestruct(&pstrID);