summaryrefslogtreecommitdiffstats
path: root/stream.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 /stream.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 'stream.c')
-rw-r--r--stream.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/stream.c b/stream.c
index c622f331..b6be4da2 100644
--- a/stream.c
+++ b/stream.c
@@ -811,25 +811,25 @@ rsRetVal strmSetProperty(strm_t *pThis, var_t *pProp)
ASSERT(pProp != NULL);
if(isProp("sType")) {
- CHKiRet(strmSetsType(pThis, (strmType_t) pProp->val.vInt));
+ CHKiRet(strmSetsType(pThis, (strmType_t) pProp->val.num));
} else if(isProp("iCurrFNum")) {
- pThis->iCurrFNum = pProp->val.vInt;
+ pThis->iCurrFNum = pProp->val.num;
} else if(isProp("pszFName")) {
- CHKiRet(strmSetFName(pThis, rsCStrGetSzStrNoNULL(pProp->val.vpCStr), rsCStrLen(pProp->val.vpCStr)));
+ CHKiRet(strmSetFName(pThis, rsCStrGetSzStrNoNULL(pProp->val.pStr), rsCStrLen(pProp->val.pStr)));
} else if(isProp("tOperationsMode")) {
- CHKiRet(strmSettOperationsMode(pThis, pProp->val.vInt));
+ CHKiRet(strmSettOperationsMode(pThis, pProp->val.num));
} else if(isProp("tOpenMode")) {
- CHKiRet(strmSettOpenMode(pThis, pProp->val.vInt));
+ CHKiRet(strmSettOpenMode(pThis, pProp->val.num));
} else if(isProp("iCurrOffs")) {
- pThis->iCurrOffs = pProp->val.vLong;
+ pThis->iCurrOffs = pProp->val.num;
} else if(isProp("iMaxFileSize")) {
- CHKiRet(strmSetiMaxFileSize(pThis, pProp->val.vLong));
+ CHKiRet(strmSetiMaxFileSize(pThis, pProp->val.num));
} else if(isProp("iMaxFiles")) {
- CHKiRet(strmSetiMaxFiles(pThis, pProp->val.vInt));
+ CHKiRet(strmSetiMaxFiles(pThis, pProp->val.num));
} else if(isProp("iFileNumDigits")) {
- CHKiRet(strmSetiFileNumDigits(pThis, pProp->val.vInt));
+ CHKiRet(strmSetiFileNumDigits(pThis, pProp->val.num));
} else if(isProp("bDeleteOnClose")) {
- CHKiRet(strmSetbDeleteOnClose(pThis, pProp->val.vInt));
+ CHKiRet(strmSetbDeleteOnClose(pThis, pProp->val.num));
}
finalize_it: