summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-11 09:46:34 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-11 09:46:34 +0000
commita9cde36fdc0ddb3b4ed6358c4e953b362c68d97d (patch)
tree617c8dadd9fde2f385d12d6db7047a1e3b0f8f4e
parent34ca2b175c3029f36e4d85c410b40e46f03be6a3 (diff)
downloadrsyslog-a9cde36fdc0ddb3b4ed6358c4e953b362c68d97d.tar.gz
rsyslog-a9cde36fdc0ddb3b4ed6358c4e953b362c68d97d.tar.xz
rsyslog-a9cde36fdc0ddb3b4ed6358c4e953b362c68d97d.zip
did some warning cleanup on snmp output module
-rw-r--r--plugins/omsnmp/omsnmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/omsnmp/omsnmp.c b/plugins/omsnmp/omsnmp.c
index 49256bae..42b50433 100644
--- a/plugins/omsnmp/omsnmp.c
+++ b/plugins/omsnmp/omsnmp.c
@@ -156,8 +156,8 @@ static rsRetVal omsnmp_sendsnmp(instanceData *pData, uchar *psz)
oid oidSyslogMessage[MAX_OID_LEN];
size_t oLen = MAX_OID_LEN;
int status;
- char *trap = NULL; /* obselte , *specific = NULL, *description = NULL, *agent = NULL; */
- char *strErr = NULL;
+ char *trap = NULL;
+ const char *strErr = NULL;
assert(psz != NULL);
dbgprintf( "omsnmp_sendsnmp: ENTER - Target = '%s' on Port = '%d' syslogmessage = '%s'\n", pData->szTarget, pData->iPort, (char*)psz);
@@ -191,7 +191,7 @@ static rsRetVal omsnmp_sendsnmp(instanceData *pData, uchar *psz)
pdu = snmp_pdu_create(SNMP_MSG_TRAP);
/* Set enterprise */
- if (!snmp_parse_oid( (char*) pData->szEnterpriseOID, &enterpriseoid, &enterpriseoidlen ))
+ if (!snmp_parse_oid( (char*) pData->szEnterpriseOID, enterpriseoid, &enterpriseoidlen ))
{
strErr = snmp_api_errstring(snmp_errno);
dbgprintf("omsnmp_sendsnmp: Parsing EnterpriseOID failed '%s' with error '%s' \n", pData->szSyslogMessageOID, strErr);
@@ -246,9 +246,9 @@ static rsRetVal omsnmp_sendsnmp(instanceData *pData, uchar *psz)
/* dbgprintf( "omsnmp_sendsnmp: SyslogMessage '%s'\n", psz );*/
/* First create new OID object */
- if (snmp_parse_oid( (char*) pData->szSyslogMessageOID, &oidSyslogMessage, &oLen))
+ if (snmp_parse_oid( (char*) pData->szSyslogMessageOID, oidSyslogMessage, &oLen))
{
- int iErrCode = snmp_add_var(pdu, &oidSyslogMessage, oLen, 's', (char*) psz);
+ int iErrCode = snmp_add_var(pdu, oidSyslogMessage, oLen, 's', (char*) psz);
if (iErrCode)
{
const char *str = snmp_api_errstring(iErrCode);