From 5287b695e6961ff4941aa0e0e5ba743334415234 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 13 Mar 2008 14:24:32 +0000 Subject: cleaned up new relp code files to make them suitable for implementation --- plugins/imrelp/imrelp.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'plugins/imrelp/imrelp.c') diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c index 7baa95f2..cabc368f 100644 --- a/plugins/imrelp/imrelp.c +++ b/plugins/imrelp/imrelp.c @@ -1,9 +1,10 @@ -/* imtcp.c - * This is the implementation of the TCP input module. +/* imrelp.c * - * File begun on 2007-12-21 by RGerhards (extracted from syslogd.c) + * This is the implementation of the RELP input module. * - * Copyright 2007 Rainer Gerhards and Adiscon GmbH. + * File begun on 2008-03-13 by RGerhards + * + * Copyright 2008 Rainer Gerhards and Adiscon GmbH. * * This file is part of rsyslog. * @@ -35,9 +36,6 @@ #include #include #include -#if HAVE_FCNTL_H -#include -#endif #include "rsyslog.h" #include "syslogd.h" #include "cfsysline.h" @@ -203,9 +201,9 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(objUse(tcpsrv, LM_TCPSRV_FILENAME)); /* register config file handlers */ - CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputtcpserverrun", 0, eCmdHdlrGetWord, + CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputrelpserverrun", 0, eCmdHdlrGetWord, addTCPListener, NULL, STD_LOADABLE_MODULE_ID)); - CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputtcpmaxsessions", 0, eCmdHdlrInt, + CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputrelpmaxsessions", 0, eCmdHdlrInt, NULL, &iTCPSessMax, STD_LOADABLE_MODULE_ID)); CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler, resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID)); -- cgit