diff options
author | Stephen M. Cameron <stephenmcameron@gmail.com> | 2012-03-11 11:34:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-11 11:34:38 +0100 |
commit | 09ad20ff60eb8c11edf407c4060062dae187f5e7 (patch) | |
tree | e7df00992aef151a5646bcdee50e3ce8924a6af3 | |
parent | 1e1ffcc41c12011f665d8f962d0d387305e32522 (diff) | |
download | fio-09ad20ff60eb8c11edf407c4060062dae187f5e7.tar.gz fio-09ad20ff60eb8c11edf407c4060062dae187f5e7.tar.bz2 |
gfio: fix discrepancies between graph header and implementation
Header defined a couple functions as returning void, but they really return int.
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | graph.c | 1 | ||||
-rw-r--r-- | graph.h | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -29,6 +29,7 @@ #include <gtk/gtk.h> #include "tickmarks.h" +#include "graph.h" struct xyvalue { double x, y; @@ -14,8 +14,8 @@ void graph_title(struct graph *g, const char *title); void graph_x_title(struct graph *g, const char *title); void graph_y_title(struct graph *g, const char *title); void graph_add_label(struct graph *g, const char *label); -void graph_add_data(struct graph *g, const char *label, const double value); -void graph_add_xy_data(struct graph *g, const char *label, +int graph_add_data(struct graph *g, const char *label, const double value); +int graph_add_xy_data(struct graph *g, const char *label, const double x, const double y); void graph_set_color(struct graph *g, const char *label, double red, double green, double blue); |