Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/snmp
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25950/ldap/servers/snmp
Modified Files:
ldap-agent.c
Log Message:
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler
Index: ldap-agent.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/snmp/ldap-agent.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ldap-agent.c 10 Nov 2006 23:45:53 -0000 1.11
+++ ldap-agent.c 18 Oct 2007 00:08:35 -0000 1.12
@@ -277,7 +277,6 @@
time_t previous_start;
int previous_state;
int stats_hdl = -1;
- int err;
snmp_log(LOG_INFO, "Reloading stats.\n");
@@ -293,7 +292,7 @@
serv_p->stats_file, serv_p->port);
/* Open the stats file */
- if ((err = agt_mopen_stats(serv_p->stats_file, O_RDONLY, &stats_hdl))
!= 0) {
+ if ( agt_mopen_stats(serv_p->stats_file, O_RDONLY, &stats_hdl) != 0 )
{
/* Server must be down */
serv_p->server_state = SERVER_DOWN;
/* Zero out the ops and entries tables */
@@ -304,13 +303,13 @@
serv_p->stats_file, serv_p->port);
} else {
/* Initialize ops table */
- if ((err = agt_mread_stats(stats_hdl, &ctx->hdr_tbl,
&ctx->ops_tbl,
- &ctx->entries_tbl)) != 0)
+ if ( agt_mread_stats(stats_hdl, &ctx->hdr_tbl,
&ctx->ops_tbl,
+ &ctx->entries_tbl) != 0 )
snmp_log(LOG_ERR, "Unable to read stats file: %s\n",
serv_p->stats_file);
/* Close stats file */
- if ((err = agt_mclose_stats(stats_hdl)) != 0)
+ if ( agt_mclose_stats(stats_hdl) != 0 )
snmp_log(LOG_ERR, "Error closing stats file: %s\n",
serv_p->stats_file);
Show replies by date