portability fixes - ploot - simple plotting tools HTML git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit f57e3eaca390e814349d3f6bcafde07b82041217 DIR parent 7dad2b0d2e8a560efbe5d38164a63f999b3a23f9 HTML Author: Josuah Demangeon <me@josuah.net> Date: Mon, 24 Feb 2020 13:46:27 +0100 portability fixes Diffstat: M ploot-braille.c | 2 -- M src/csv.c | 1 + M src/csv.h | 1 + M src/ffplot.c | 1 + M src/ffplot.h | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/ploot-braille.c b/ploot-braille.c @@ -106,12 +106,10 @@ braille_render(struct drawille *drw, FILE *fp, double vmin, double vmax) static void plot(struct csv *vl, FILE *fp, size_t ncol, int row, int col) { - size_t len; double vmin, vmax, vstep; time_t tmin, tmax, tstep; struct drawille *drw; - len = 500; col -= 8; scale(vl, ncol, &tmin, &tmax, &tstep, &vmin, &vmax, &vstep); DIR diff --git a/src/csv.c b/src/csv.c @@ -6,6 +6,7 @@ #include <time.h> #include <stdlib.h> #include <limits.h> +#include <time.h> #include "log.h" #include "tool.h" DIR diff --git a/src/csv.h b/src/csv.h @@ -2,6 +2,7 @@ #define CSV_H #include <stdio.h> +#include <time.h> /* * List of values and timestamps. Both have their dedicated buffer DIR diff --git a/src/ffplot.c b/src/ffplot.c @@ -4,6 +4,7 @@ #include <stddef.h> #include <string.h> #include <stdio.h> +#include <stdint.h> #include "font.h" #include "tool.h" DIR diff --git a/src/ffplot.h b/src/ffplot.h @@ -3,6 +3,7 @@ #include <stdio.h> #include <stddef.h> +#include <stdint.h> #include "font.h"