Do not interfere with CFLAGS/LDFLAGS env anymore. (#1659)

* CI fixes
 * some build systems do not like that (e.g. OpenWrt)
 * fixed some rrdtool related build warnings/errors

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2022-07-13 19:44:18 +02:00
committed by GitHub
parent ae2bedce3a
commit 7c19de4904
11 changed files with 83 additions and 84 deletions
+4 -7
View File
@@ -54,11 +54,11 @@ int main(int argc, char *argv[]) {
unsigned long step = 0, ds_cnt = 0;
rrd_value_t *data, *p;
char **names, *filename = NULL, *start_s, *end_s, *cf;
u_int i, j, t, first = 1, quick_mode = 0, verbose = 0;
time_t start, end;
u_int i, first = 1, quick_mode = 0, verbose = 0;
time_t t, start, end;
struct ndpi_ses_struct ses;
float alpha, ro;
char c;
int c;
/* Defaults */
alpha = DEFAULT_ALPHA;
@@ -138,8 +138,6 @@ int main(int argc, char *argv[]) {
p = data;
for(t=start+1, i=0; t<end; t+=step, i++) {
j = 0; /* Consider only the first DS */
/* for(j=0; j<ds_cnt; j++) */ {
rrd_value_t value = *p++;
if(!isnan(value)) {
@@ -156,7 +154,7 @@ int main(int argc, char *argv[]) {
if(verbose || is_anomaly) {
if(quick_mode) {
printf("%u\n", t);
printf("%ld\n", t);
} else {
const time_t _t = t;
struct tm *t_info = localtime((const time_t*)&_t);
@@ -175,7 +173,6 @@ int main(int argc, char *argv[]) {
}
}
}
}
}
rrd_freemem(data);