diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 17:44:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 17:44:47 +0000 |
commit | 75e9a2dc69bad2fe10cc60d801019731069005cf (patch) | |
tree | 605c12a4609dc68703fd6adf324aa1cc6e4b45d4 /stream.c | |
parent | 44ac484dd18867163735c54d052e57d52142edaa (diff) | |
download | rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.gz rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.bz2 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.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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: |