summaryrefslogtreecommitdiffstats
path: root/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-22 17:44:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-22 17:44:47 +0000
commit75e9a2dc69bad2fe10cc60d801019731069005cf (patch)
tree605c12a4609dc68703fd6adf324aa1cc6e4b45d4 /queue.c
parent44ac484dd18867163735c54d052e57d52142edaa (diff)
downloadrsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.gz
rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.xz
rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.zip
simplified var object, now only supports strings and numbers as a single
type
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/queue.c b/queue.c
index 2c43e773..18ea416c 100644
--- a/queue.c
+++ b/queue.c
@@ -2066,15 +2066,15 @@ static rsRetVal queueSetProperty(queue_t *pThis, var_t *pProp)
ASSERT(pProp != NULL);
if(isProp("iQueueSize")) {
- pThis->iQueueSize = pProp->val.vInt;
+ pThis->iQueueSize = pProp->val.num;
} else if(isProp("iUngottenObjs")) {
- pThis->iUngottenObjs = pProp->val.vInt;
+ pThis->iUngottenObjs = pProp->val.num;
} else if(isProp("tVars.disk.sizeOnDisk")) {
- pThis->tVars.disk.sizeOnDisk = pProp->val.vLong;
+ pThis->tVars.disk.sizeOnDisk = pProp->val.num;
} else if(isProp("tVars.disk.bytesRead")) {
- pThis->tVars.disk.bytesRead = pProp->val.vLong;
+ pThis->tVars.disk.bytesRead = pProp->val.num;
} else if(isProp("qType")) {
- if(pThis->qType != pProp->val.vLong)
+ if(pThis->qType != pProp->val.num)
ABORT_FINALIZE(RS_RET_QTYPE_MISMATCH);
}