You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Created by snakebyte on 2010-04-29 14:34:38 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2010-05-05 14:15:06 +00:00)
Target Version: 1.0.2
Last Update: 2010-05-05 14:15:06 +00:00 (in Redmine)
hi,
when compiling icinga with -wall -wextra enabled, i noticed some warnings
for this file, there a two unused variables and a broken
if statement. The memory leak is minor since the program exits
right afterwards and the operating system cleans this up.
/* Opsera patch - return based on error, because mrtg_mode was always returning OK */ @ -1381,12 +1381,10 @ int read_status_file(void){
int read_nagiostats_file(void){
char temp_buffer[MAX_INPUT_BUFFER];
FILE *fp=NULL;
int data_type=STATUS_NO_DATA;
char *var=NULL;
char *val=NULL;
char *temp_ptr=NULL;
time_t current_time;
This issue has been migrated from Redmine: https://dev.icinga.com/issues/385
Created by snakebyte on 2010-04-29 14:34:38 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2010-05-05 14:15:06 +00:00)
Target Version: 1.0.2
Last Update: 2010-05-05 14:15:06 +00:00 (in Redmine)
hi,
when compiling icinga with -wall -wextra enabled, i noticed some warnings
for this file, there a two unused variables and a broken
if statement. The memory leak is minor since the program exits
right afterwards and the operating system cleans this up.
Regards, Eric
--- icinga-core/base/icingastats.orig 2010-04-29 16:18:13.000000000 +0200
**+ icinga-core/base/icingastats.c 2010-04-29 16:21:40.000000000 +0200
@ -431,7 +431,7
@ int main(int argc, char **argv){else
display_mrtg_values();
free(nagiostats_file);
/* Opsera patch - return based on error, because mrtg_mode was always returning OK */
@ -1381,12 +1381,10
@ int read_status_file(void){int read_nagiostats_file(void){
char temp_buffer[MAX_INPUT_BUFFER];
FILE *fp=NULL;
char *var=NULL;
char *val=NULL;
char *temp_ptr=NULL;
time_t current_time;
time(¤t_time);
Attachments
Changesets
2010-05-05 13:15:36 +00:00 by mfriedrich 40f64ef
2010-05-05 14:12:07 +00:00 by mfriedrich 93e05bf
Relations:
The text was updated successfully, but these errors were encountered: