diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-24 14:05:00 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-24 14:05:00 +0200 |
commit | 6e093aa32674235c76410a10d1cc7321d3bf33bc (patch) | |
tree | 545549d0e2361f4ef7a41a3f1e840e310664c9a5 /runtime/batch.h | |
parent | 31fae7b93d7aa94b7b3fcbfdf101328230ea6302 (diff) | |
download | rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.tar.gz rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.tar.xz rsyslog-6e093aa32674235c76410a10d1cc7321d3bf33bc.zip |
made hardcoded max string number persistent
see commit for reasoning
Diffstat (limited to 'runtime/batch.h')
-rw-r--r-- | runtime/batch.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/batch.h b/runtime/batch.h index b555fc2a..68f48d8b 100644 --- a/runtime/batch.h +++ b/runtime/batch.h @@ -53,11 +53,9 @@ struct batch_obj_s { */ sbool bFilterOK; /* work area for filter processing (per action, reused!) */ sbool bPrevWasSuspended; - void *pActParams; /* parameters to be passed to action */ - size_t *pLenParams; /* length of the parameter in question */ - void *staticActParams[CONF_OMOD_NUMSTRINGS_BUFSIZE]; + void *staticActParams[CONF_OMOD_NUMSTRINGS_MAXSIZE]; /* a cache to save malloc(), if not absolutely necessary */ - size_t staticLenParams[CONF_OMOD_NUMSTRINGS_BUFSIZE]; + size_t staticLenParams[CONF_OMOD_NUMSTRINGS_MAXSIZE]; /* and the same for the message length (if used) */ /* end action work variables */ }; @@ -153,7 +151,7 @@ batchFree(batch_t *pBatch) { int i; int j; for(i = 0 ; i < pBatch->maxElem ; ++i) { - for(j = 0 ; j < CONF_OMOD_NUMSTRINGS_BUFSIZE ; ++j) { + for(j = 0 ; j < CONF_OMOD_NUMSTRINGS_MAXSIZE ; ++j) { free(pBatch->pElem[i].staticActParams[j]); } } |