diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c
index 23567c5d2252fe0ca05988a6a4ac58d9c6c2923e..ec0c140b76593e1fb07e1edb8c9886fb6c2c4f5c 100644 (file)
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
/*****************************************************************************
- * RRDtool 1.2.23 Copyright by Tobi Oetiker, 1997-2007
+ * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007
*****************************************************************************
* rrd_cgi.c RRD Web Page Generator
*****************************************************************************/
/* allocate and initialize variable heap */
static int initvar(
- )
+ void)
{
varheap = (vardata *) malloc(sizeof(vardata) * INIT_VARSTORE_SIZE);
if (varheap == NULL) {
/* cleanup: free allocated memory */
static void donevar(
- )
+ void)
{
int i;
if (0 == strcmp(name, varheap[i].name)) {
/* overwrite existing entry */
if (varheap[i].is_const) {
-#ifdef DEBUG_VARS
+#ifdef DEBUG_VARS
printf("<!-- setver(%s, %s): not assigning: "
"const variable -->\n", name, value);
-# endif
+#endif
return varheap[i].value;
}
-#ifdef DEBUG_VARS
+#ifdef DEBUG_VARS
printf("<!-- setvar(%s, %s): overwriting old value (%s) -->\n",
name, value, varheap[i].value);
#endif
char *server_url = NULL;
long i;
long filter = 0;
+ struct option long_options[] = {
+ {"filter", no_argument, 0, 'f'},
+ {0, 0, 0, 0}
+ };
#ifdef MUST_DISABLE_SIGFPE
signal(SIGFPE, SIG_IGN);
for (i=0;i<argc;i++)
printf("%d-'%s'\n",i,argv[i]); */
while (1) {
- static struct option long_options[] = {
- {"filter", no_argument, 0, 'f'},
- {0, 0, 0, 0}
- };
int option_index = 0;
int opt;
if (!filter) {
printf("Content-Type: text/html\n"
- "Content-Length: %d\n", strlen(buffer));
+ "Content-Length: %zd\n", strlen(buffer));
if (labs(goodfor) > 0) {
time_t now;