diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-22 15:29:02 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-22 15:29:02 +0200 |
commit | 9faf2240c4a8f09f3f6c2c9bbd47e48520524e03 (patch) | |
tree | 3ce400e560526e78039a31465d9a92eb2314464c /runtime/srutils.c | |
parent | 8985d50fea62e1794c8e1a12d09733007869a6b4 (diff) | |
download | rsyslog-9faf2240c4a8f09f3f6c2c9bbd47e48520524e03.tar.gz rsyslog-9faf2240c4a8f09f3f6c2c9bbd47e48520524e03.tar.bz2 rsyslog-9faf2240c4a8f09f3f6c2c9bbd47e48520524e03.zip |
changed TRUE/FALSE to RSTRUE/RSFALSE
This is done to prevent name claches with libraries.
Diffstat (limited to 'runtime/srutils.c')
-rw-r--r-- | runtime/srutils.c | 8 |
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--]; |