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 /ctok.c | |
parent | 44ac484dd18867163735c54d052e57d52142edaa (diff) | |
download | rsyslog-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 'ctok.c')
-rw-r--r-- | ctok.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,7 +179,7 @@ static rsRetVal ctokGetNumber(ctok_t *pThis, ctok_token_t *pToken) { DEFiRet; - int64 n; /* the parsed number */ + number_t n; /* the parsed number */ uchar c; int valC; int iBase; @@ -228,7 +228,7 @@ ctokGetNumber(ctok_t *pThis, ctok_token_t *pToken) /* we need to unget the character that made the loop terminate */ CHKiRet(ctokUngetCharFromStream(pThis, c)); - CHKiRet(var.SetInt64(pToken->pVar, n)); + CHKiRet(var.SetNumber(pToken->pVar, n)); dbgprintf("number, number is: '%lld'\n", n); |