summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d989c0)
raw | patch | inline | side by side (parent: 8d989c0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Aug 2012 09:23:11 +0000 (09:23 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Aug 2012 09:23:11 +0000 (09:23 +0000) |
diff --git a/program/src/rrd_cgi.c b/program/src/rrd_cgi.c
index 9848715885c6724467969a46b615119ccb034684..20d464cfbf0126837f3e809c36b052d183dc30e3 100644 (file)
--- a/program/src/rrd_cgi.c
+++ b/program/src/rrd_cgi.c
int argc,
char *argv[])
{
- long length;
char *buffer;
- char *server_url = NULL;
long i;
long filter = 0;
struct option long_options[] = {
if (!filter) {
rrdcgiDebug(0, 0);
rrdcgiArg = rrdcgiInit();
- server_url = getenv("SERVER_URL");
}
/* make sure we have one extra argument,
fprintf(stderr, "ERROR: expected a filename\n");
exit(1);
} else {
- length = readfile(argv[optind], &buffer, 1);
+ readfile(argv[optind], &buffer, 1);
}
if (rrd_test_error()) {
index dd1b20826191960c7d2c8b06be4bd2427221cc27..6ad540a03e34dd3244fef15a9792816c29ed061c 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
int leg_c = 0;
double leg_x = border;
int leg_y = 0; //im->yimg;
- int leg_y_prev = 0; // im->yimg;
int leg_cc;
double glue = 0;
int i, ii, mark = 0;
+(double)legspace[ii]
+ glue;
}
- leg_y_prev = leg_y;
if (leg_x > border || prt_fctn == 's')
leg_y += im->text_prop[TEXT_PROP_LEGEND].size * 1.8;
if (prt_fctn == 's')
diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c
index a469d56e036faeeeae023e3c22b0d5255978a3c0..7f9358dddc98dcd334fadc6da501d12110a7ea21 100644 (file)
--- a/program/src/rrd_open.c
+++ b/program/src/rrd_open.c
int whence)
{
off_t ret = 0;
+#ifndef HAVE_MMAP
rrd_simple_file_t *rrd_simple_file;
rrd_simple_file = (rrd_simple_file_t *)rrd_file->pvt;
-
+#endif
+
#ifdef HAVE_MMAP
if (whence == SEEK_SET)
rrd_file->pos = off;
index 1b59f454252a851a72f6cf0d2e3a4fe433393f73..a5f1db8910bdc4755869de1cbcbf01c11fa34122 100644 (file)
{
/* using time_t seems to help portability with 64bit oses */
time_t mday = 0, wday, mon, year = ptv->tm.tm_year;
- int tlen;
switch (sc_tokid) {
case YESTERDAY:
case NUMBER:
/* get numeric <sec since 1970>, MM/DD/[YY]YY, or DD.MM.[YY]YY
*/
- tlen = strlen(sc_token);
mon = atol(sc_token);
if (mon > 10 * 365 * 24 * 60 * 60) {
ptv->tm = *localtime(&mon);
index b1b1e18dec390576dd3fb67bb4403cc05e7f4fb7..8668337ef885405d3e701e4c8d9a50fff664ba66 100644 (file)
--- a/program/src/rrd_resize.c
+++ b/program/src/rrd_resize.c
unsigned long l, rra;
long modify;
unsigned long target_rra;
- int grow = 0, shrink = 0;
+ int shrink = 0;
char *endptr;
rrd_file_t *rrd_file, *rrd_out_file;
target_rra = strtol(argv[2], &endptr, 0);
if (!strcmp(argv[3], "GROW"))
- grow = 1;
+ shrink = 0;
else if (!strcmp(argv[3], "SHRINK"))
shrink = 1;
else {