summaryrefslogtreecommitdiffstats
path: root/runtime/srutils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-08-25 12:19:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-08-25 12:19:56 +0200
commitde71589ca3145dfbe8e34790bb49e3d86d3d3bce (patch)
tree43a91ec3d4c7306c9ddda820b916e8da71b3d065 /runtime/srutils.c
parent2f4292a81c2bf89b349f0e276c69616ac6e51164 (diff)
parent8939ccfffd3a0580ead376234ad64a9602d4e4e6 (diff)
downloadrsyslog-de71589ca3145dfbe8e34790bb49e3d86d3d3bce.tar.gz
rsyslog-de71589ca3145dfbe8e34790bb49e3d86d3d3bce.tar.bz2
rsyslog-de71589ca3145dfbe8e34790bb49e3d86d3d3bce.zip
Merge branch 'v6-stable'
Conflicts: ChangeLog configure.ac runtime/ruleset.c tools/syslogd.c
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--];