summaryrefslogtreecommitdiffstats
path: root/runtime/srutils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-08-25 12:27:06 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-08-25 12:27:06 +0200
commit27a0078958d808a323c945b58b77ee96ee690444 (patch)
tree2bcd479d0e5b42dd92c715e917722d6519c922b0 /runtime/srutils.c
parent1eac94e11dab1e7caead5e31a57d2cae31b5ad62 (diff)
parentde71589ca3145dfbe8e34790bb49e3d86d3d3bce (diff)
downloadrsyslog-27a0078958d808a323c945b58b77ee96ee690444.tar.gz
rsyslog-27a0078958d808a323c945b58b77ee96ee690444.tar.xz
rsyslog-27a0078958d808a323c945b58b77ee96ee690444.zip
Merge branch 'master' into master-newtemplate
Diffstat (limited to 'runtime/srutils.c')
-rw-r--r--runtime/srutils.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/srutils.c b/runtime/srutils.c
index a473c83e..f420c0f7 100644
--- a/runtime/srutils.c
+++ b/runtime/srutils.c
@@ -41,8 +41,6 @@
#include <assert.h>
#include <sys/wait.h>
#include <ctype.h>
-#define TRUE 1
-#define FALSE 0
#include "srUtils.h"
#include "obj.h"
@@ -128,11 +126,11 @@ rsRetVal srUtilItoA(char *pBuf, int iLenBuf, number_t iToConv)
if(iToConv < 0)
{
- bIsNegative = TRUE;
+ bIsNegative = RSTRUE;
iToConv *= -1;
}
else
- bIsNegative = FALSE;
+ bIsNegative = RSFALSE;
/* first generate a string with the digits in the reverse direction */
i = 0;
@@ -148,7 +146,7 @@ rsRetVal srUtilItoA(char *pBuf, int iLenBuf, number_t iToConv)
return RS_RET_PROVIDED_BUFFER_TOO_SMALL;
/* then move it to the right direction... */
- if(bIsNegative == TRUE)
+ if(bIsNegative == RSTRUE)
*pBuf++ = '-';
while(i >= 0)
*pBuf++ = szBuf[i--];