diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-11 11:51:48 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-11 11:51:48 +0000 |
commit | db34f56bc7659610bac378a3adc44cb934b60476 (patch) | |
tree | 23b64f2ddd2c147788be693e679ec59cbb19f9ea | |
parent | 3c13abe20b35a6b11c9fabf81a30fa6ad19f130c (diff) | |
download | rsyslog-db34f56bc7659610bac378a3adc44cb934b60476.tar.gz rsyslog-db34f56bc7659610bac378a3adc44cb934b60476.tar.xz rsyslog-db34f56bc7659610bac378a3adc44cb934b60476.zip |
some cosmetic cleanup
-rw-r--r-- | plugins/omsnmp/omsnmp.c | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/plugins/omsnmp/omsnmp.c b/plugins/omsnmp/omsnmp.c index d9324135..6333b7ab 100644 --- a/plugins/omsnmp/omsnmp.c +++ b/plugins/omsnmp/omsnmp.c @@ -1,17 +1,6 @@ /* omsnmp.c * - * This module sends an snmp trap. More text will come here soon ^^ - * - * This module will become part of the CVS and the rsyslog project because I think - * it is a generally useful debugging, testing and development aid for everyone - * involved with rsyslog. - * - * CURRENT SUPPORTED COMMANDS: - * - * :omsnmp:sleep <seconds> <milliseconds> - * - * Must be specified exactly as above. Keep in mind milliseconds are a millionth - * of a second! + * This module sends an snmp trap. * * NOTE: read comments in module-template.h to understand how this file * works! @@ -153,10 +142,10 @@ static rsRetVal omsnmp_sendsnmp(instanceData *pData, uchar *psz) netsnmp_pdu *pdu = NULL; oid enterpriseoid[MAX_OID_LEN]; size_t enterpriseoidlen = MAX_OID_LEN; - oid oidSyslogMessage[MAX_OID_LEN]; - size_t oLen = MAX_OID_LEN; + oid oidSyslogMessage[MAX_OID_LEN]; + size_t oLen = MAX_OID_LEN; int status; - char *trap = NULL; + char *trap = NULL; const char *strErr = NULL; assert(psz != NULL); @@ -474,14 +463,14 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a BEGINmodExit CODESTARTmodExit -if (pszTarget != NULL) - free(pszTarget); -if (pszCommunity != NULL) - free(pszCommunity); -if (pszEnterpriseOID != NULL) - free(pszEnterpriseOID); -if (pszSyslogMessageOID != NULL) - free(pszSyslogMessageOID); + if (pszTarget != NULL) + free(pszTarget); + if (pszCommunity != NULL) + free(pszCommunity); + if (pszEnterpriseOID != NULL) + free(pszEnterpriseOID); + if (pszSyslogMessageOID != NULL) + free(pszSyslogMessageOID); ENDmodExit |