diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-07 13:14:17 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-07 13:14:17 +0000 |
commit | 1888852c9a59631771efb5975aa51ddb0305ceb2 (patch) | |
tree | 023b8dc903ea9b8daf6c9087c1ca6885620ad340 | |
parent | edf4d9a678835afecd061d364ab97f097edb0a76 (diff) | |
download | rsyslog-1888852c9a59631771efb5975aa51ddb0305ceb2.tar.gz rsyslog-1888852c9a59631771efb5975aa51ddb0305ceb2.tar.xz rsyslog-1888852c9a59631771efb5975aa51ddb0305ceb2.zip |
some cleanup
-rw-r--r-- | net.h | 10 | ||||
-rw-r--r-- | obj-types.h | 4 | ||||
-rw-r--r-- | template.c | 6 |
3 files changed, 4 insertions, 16 deletions
@@ -114,15 +114,5 @@ ENDinterface(net) /* prototypes */ PROTOTYPEObj(net); - - -#if 0 -extern int ACLAddHostnameOnFail; /* add hostname to acl when DNS resolving has failed */ -extern int ACLDontResolve; /* add hostname to acl instead of resolving it to IP(s) */ -extern struct AllowedSenders *pAllowedSenders_UDP; -extern struct AllowedSenders *pAllowedSenders_TCP; -extern struct AllowedSenders *pAllowedSenders_GSS; -#endif - #endif /* #ifdef SYSLOG_INET */ #endif /* #ifndef INCLUDED_NET_H */ diff --git a/obj-types.h b/obj-types.h index 3771d02d..b2f89f9e 100644 --- a/obj-types.h +++ b/obj-types.h @@ -65,18 +65,16 @@ typedef enum { /* IDs of base methods supported by all objects - used for jump t */ typedef struct interface_s { int ifVersion; /* must be set to version requested */ - //xxxobjID_t oID; /* our object ID (later dynamically assigned) */ + int ifIsLoaded; /* is the interface loaded? (0-no, 1-yes; if no, functions can NOT be called! */ } interface_t; typedef struct objInfo_s { -objID_t objID; uchar *pszID; /* the object ID as a string */ size_t lenID; /* length of the ID string */ int iObjVers; uchar *pszName; rsRetVal (*objMethods[OBJ_NUM_METHODS])(); - // TODO: the queryInterface pointer should probably be added here rsRetVal (*QueryIF)(interface_t*); } objInfo_t; @@ -484,9 +484,9 @@ static int do_Parameter(unsigned char **pp, struct template *pTpl) int iNum; /* to compute numbers */ #ifdef FEATURE_REGEXP - /* APR: variables for regex */
- int longitud;
- unsigned char *regex_char;
+ /* APR: variables for regex */ + int longitud; + unsigned char *regex_char; unsigned char *regex_end; #endif |