summaryrefslogtreecommitdiffstats
path: root/ctok.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 /ctok.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 'ctok.c')
-rw-r--r--ctok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctok.c b/ctok.c
index 8b88e1a2..66305171 100644
--- a/ctok.c
+++ b/ctok.c
@@ -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);