fix warnings
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1348
a5681a0c-68f1-0310-ab6d-
d61299d08faa
#include "rrd_tool.h"
#include "rrd_rpncalc.h"
-#define MAX_VNAME_LEN 255
-#define DEF_NAM_FMT "%255[-_A-Za-z0-9]"
#define ALTYGRID 0x01 /* use alternative y grid algorithm */
#define ALTAUTOSCALE 0x02 /* use alternative algorithm to find lower and upper bounds */
void info_print(
info_t *data)
{
- long image_length = 0;
-
while (data) {
printf("%s = ", data->key);
#include "rrd_tool.h"
#include "rrd_rpncalc.h"
-#include "rrd_graph.h"
+// #include "rrd_graph.h"
#include <limits.h>
#include <locale.h>
short val; /* used by OP_NUMBER and OP_VARIABLE */
} rpn_cdefds_t;
+#define MAX_VNAME_LEN 255
+#define DEF_NAM_FMT "%255[-_A-Za-z0-9]"
+
/* limit imposed by sizeof(rpn_cdefs_t) and rrd.ds_def.par */
#define DS_CDEF_MAX_RPN_NODES 26
} else if (strcmp("graphv", argv[1]) == 0) {
info_t *grinfo = NULL; /* 1 to distinguish it from the NULL that rrd_graph sends in */
-
- if (grinfo = rrd_graph_v(argc - 1, &argv[1])) {
+ grinfo = rrd_graph_v(argc - 1, &argv[1]);
+ if (grinfo) {
info_print(grinfo);
info_free(grinfo);
}