summaryrefslogtreecommitdiffstats
path: root/srUtils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-09-15 10:33:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-09-15 10:33:47 +0000
commitcaf76db7c08183bc23167687702cb8652c254337 (patch)
tree281794d7358fa1c53ee11a104a67f600fbb00ff9 /srUtils.c
parentf820d0ac236f6953e7bd5d115775a8751837ef4f (diff)
downloadrsyslog-caf76db7c08183bc23167687702cb8652c254337.tar.gz
rsyslog-caf76db7c08183bc23167687702cb8652c254337.tar.xz
rsyslog-caf76db7c08183bc23167687702cb8652c254337.zip
prepared for new parse object; now removed allmost all liblogging borrowed
code
Diffstat (limited to 'srUtils.c')
-rwxr-xr-xsrUtils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/srUtils.c b/srUtils.c
index ef8a77c1..bd2299e7 100755
--- a/srUtils.c
+++ b/srUtils.c
@@ -40,6 +40,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "rsyslog.h" /* THIS IS A MODIFICATION FOR RSYSLOG! 2004-11-18 rgerards */
#include "liblogging-stub.h" /* THIS IS A MODIFICATION FOR RSYSLOG! 2004-11-18 rgerards */
#define TRUE 1
#define FALSE 0
@@ -59,7 +60,7 @@
* public members *
* ################################################################# */
-srRetVal srUtilItoA(char *pBuf, int iLenBuf, int iToConv)
+rsRetVal srUtilItoA(char *pBuf, int iLenBuf, int iToConv)
{
int i;
int bIsNegative;
@@ -86,7 +87,7 @@ srRetVal srUtilItoA(char *pBuf, int iLenBuf, int iToConv)
/* make sure we are within bounds... */
if(i + 2 > iLenBuf) /* +2 because: a) i starts at zero! b) the \0 byte */
- return SR_RET_PROVIDED_BUFFER_TOO_SMALL;
+ return RS_RET_PROVIDED_BUFFER_TOO_SMALL;
/* then move it to the right direction... */
if(bIsNegative == TRUE)
@@ -95,5 +96,5 @@ srRetVal srUtilItoA(char *pBuf, int iLenBuf, int iToConv)
*pBuf++ = szBuf[i--];
*pBuf = '\0'; /* terminate it!!! */
- return SR_RET_OK;
+ return RS_RET_OK;
}