diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-05 07:01:35 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-05 07:01:35 +0000 |
commit | 80e69562be86d149d753530a8a57c5babbb3f4c3 (patch) | |
tree | 021a608559e734833a7d23f03444fde66bf38076 /stringbuf.h | |
parent | 05ba3fbffeaa3142e917ea69e9e39209e893581a (diff) | |
download | rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.tar.gz rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.tar.bz2 rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.zip |
did some portability changes to make rsyslog compile on HP UX
Diffstat (limited to 'stringbuf.h')
-rwxr-xr-x | stringbuf.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stringbuf.h b/stringbuf.h index 6b5826ff..aa31884e 100755 --- a/stringbuf.h +++ b/stringbuf.h @@ -72,11 +72,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 * string length is manipulated. This is for performance @@ -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) |