mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 21:00:41 +01:00
applying some "const" attributes
in trying to get more robust code (we do this as a side-activity from time to time)
This commit is contained in:
parent
aefd91e7fb
commit
bf81d5a9b0
4
dirty.h
4
dirty.h
@ -32,8 +32,8 @@ rsRetVal submitMsg2(smsg_t *pMsg);
|
||||
rsRetVal __attribute__((deprecated)) submitMsg(smsg_t *pMsg);
|
||||
rsRetVal multiSubmitFlush(multi_submit_t *pMultiSub);
|
||||
rsRetVal logmsgInternal(const int iErr, const syslog_pri_t pri, const uchar *const msg, int flags);
|
||||
rsRetVal __attribute__((deprecated)) parseAndSubmitMessage(uchar *hname, uchar *hnameIP, uchar *msg, int len,
|
||||
int flags, flowControl_t flowCtlTypeu, prop_t *pInputName, struct syslogTime *stTime, time_t ttGenTime,
|
||||
rsRetVal __attribute__((deprecated)) parseAndSubmitMessage(const uchar *hname, const uchar *hnameIP, const uchar *msg, const int len,
|
||||
const int flags, const flowControl_t flowCtlTypeu, prop_t *pInputName, const struct syslogTime *stTime, const time_t ttGenTime,
|
||||
ruleset_t *pRuleset);
|
||||
rsRetVal createMainQueue(qqueue_t **ppQueue, uchar *pszQueueName, struct nvlst *lst);
|
||||
rsRetVal startMainQueue(qqueue_t *pQueue);
|
||||
|
||||
@ -880,7 +880,7 @@ finalize_it:
|
||||
* udp input).
|
||||
* rgerhards, 2008-10-06
|
||||
*/
|
||||
rsRetVal msgConstructWithTime(smsg_t **ppThis, struct syslogTime *stTime, time_t ttGenTime)
|
||||
rsRetVal msgConstructWithTime(smsg_t **ppThis, const struct syslogTime *stTime, const time_t ttGenTime)
|
||||
{
|
||||
DEFiRet;
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ struct msg {
|
||||
*/
|
||||
PROTOTYPEObjClassInit(msg);
|
||||
rsRetVal msgConstruct(smsg_t **ppThis);
|
||||
rsRetVal msgConstructWithTime(smsg_t **ppThis, struct syslogTime *stTime, time_t ttGenTime);
|
||||
rsRetVal msgConstructWithTime(smsg_t **ppThis, const struct syslogTime *stTime, const time_t ttGenTime);
|
||||
rsRetVal msgConstructForDeserializer(smsg_t **ppThis);
|
||||
rsRetVal msgConstructFinalizer(smsg_t *pThis);
|
||||
rsRetVal msgDestruct(smsg_t **ppM);
|
||||
|
||||
@ -1557,8 +1557,12 @@ processImInternal(void)
|
||||
* function for new plugins. -- rgerhards, 2009-10-12
|
||||
*/
|
||||
rsRetVal
|
||||
parseAndSubmitMessage(uchar *hname, uchar *hnameIP, uchar *msg, int len, int flags, flowControl_t flowCtlType,
|
||||
prop_t *pInputName, struct syslogTime *stTime, time_t ttGenTime, ruleset_t *pRuleset)
|
||||
parseAndSubmitMessage(const uchar *const hname, const uchar *const hnameIP, const uchar *const msg,
|
||||
const int len, const int flags, const flowControl_t flowCtlType,
|
||||
prop_t *const pInputName,
|
||||
const struct syslogTime *const stTime,
|
||||
const time_t ttGenTime,
|
||||
ruleset_t *const pRuleset)
|
||||
{
|
||||
prop_t *pProp = NULL;
|
||||
smsg_t *pMsg = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user