summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-13 08:14:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-13 08:14:47 +0000
commit722e691af737862b32515fd5644feb33547eff8f (patch)
treec6730a14de9a90d9012aac2243e5c87ae743f9b1 /stream.c
parent088ad960e9d77d6a58a3914e53275a5e40b85dc3 (diff)
downloadrsyslog-722e691af737862b32515fd5644feb33547eff8f.tar.gz
rsyslog-722e691af737862b32515fd5644feb33547eff8f.tar.xz
rsyslog-722e691af737862b32515fd5644feb33547eff8f.zip
- introduced a new, more powerful, message submission interface submitMsg()
in additon to logmsg() - a first, rough implementation of imfile that is able to read files (but does not persist or handle rotation or whatever)
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/stream.c b/stream.c
index 40a4e8ce..94080358 100644
--- a/stream.c
+++ b/stream.c
@@ -249,18 +249,14 @@ rsRetVal strmUnreadChar(strm_t *pThis, uchar c)
return RS_RET_OK;
}
-#if 0
-/* we have commented out the code below because we would like to preserve it. It
- * is currently not needed, but may be useful if we implemented a bufferred file
- * class. NOTE: YOU MUST REVIEW THIS CODE BEFORE ACTIVATION. It may be pretty
- * outdated! -- rgerhards, 2008-01-10
- */
+
/* read a line from a strm file. A line is terminated by LF. The LF is read, but it
* is not returned in the buffer (it is discared). The caller is responsible for
* destruction of the returned CStr object!
* rgerhards, 2008-01-07
*/
-static rsRetVal strmReadLine(strm_t *pThis, rsCStrObj **ppCStr)
+rsRetVal
+strmReadLine(strm_t *pThis, rsCStrObj **ppCStr)
{
DEFiRet;
uchar c;
@@ -288,8 +284,6 @@ finalize_it:
RETiRet;
}
-#endif /* #if 0 - saved code */
-
/* Standard-Constructor for the strm object
*/