From 80e69562be86d149d753530a8a57c5babbb3f4c3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 5 Mar 2008 07:01:35 +0000 Subject: did some portability changes to make rsyslog compile on HP UX --- stringbuf.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'stringbuf.h') diff --git a/stringbuf.h b/stringbuf.h index 6b5826ff..aa31884e 100755 --- a/stringbuf.h +++ b/stringbuf.h @@ -71,11 +71,6 @@ void rsCStrDestruct(cstr_t **ppThis); */ rsRetVal rsCStrAppendChar(cstr_t *pThis, uchar c); -/** - * Finish the string buffer dynamic allocation. - */ -rsRetVal rsCStrFinish(cstr_t *pThis); - /** * Truncate "n" number of characters from the end of the * string. The buffer remains unchanged, just the @@ -156,7 +151,12 @@ rsRetVal rsCStrAppendCStr(cstr_t *pThis, cstr_t *pstrAppend); * simply needs to do nothing, so that we can save us the function call. * rgerhards, 2008-02-12 */ -#define rsCStrFinish(pThis) RS_RET_OK +# define rsCStrFinish(pThis) RS_RET_OK +#else + /** + * Finish the string buffer dynamic allocation. + */ + rsRetVal rsCStrFinish(cstr_t *pThis); #endif #define rsCStrGetBufBeg(x) ((x)->pBuf) -- cgit v1.2.3