projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* remove some experimental code from rrd_open
[rrdtool.git]
/
src
/
rrd_cgi.c
diff --git
a/src/rrd_cgi.c
b/src/rrd_cgi.c
index
75dabf4
..
0bb326f
100644
(file)
--- a/
src/rrd_cgi.c
+++ b/
src/rrd_cgi.c
@@
-221,7
+221,7
@@
static size_t varheap_size = 0;
/* allocate and initialize variable heap */
static int initvar(
/* allocate and initialize variable heap */
static int initvar(
- )
+
void
)
{
varheap = (vardata *) malloc(sizeof(vardata) * INIT_VARSTORE_SIZE);
if (varheap == NULL) {
{
varheap = (vardata *) malloc(sizeof(vardata) * INIT_VARSTORE_SIZE);
if (varheap == NULL) {
@@
-235,7
+235,7
@@
static int initvar(
/* cleanup: free allocated memory */
static void donevar(
/* cleanup: free allocated memory */
static void donevar(
- )
+
void
)
{
int i;
{
int i;
@@
-288,13
+288,13
@@
static const char *putvar(
if (0 == strcmp(name, varheap[i].name)) {
/* overwrite existing entry */
if (varheap[i].is_const) {
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);
printf("<!-- setver(%s, %s): not assigning: "
"const variable -->\n", name, value);
-#
endif
+#endif
return varheap[i].value;
}
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
printf("<!-- setvar(%s, %s): overwriting old value (%s) -->\n",
name, value, varheap[i].value);
#endif
@@
-398,6
+398,10
@@
int main(
char *server_url = NULL;
long i;
long filter = 0;
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);
#ifdef MUST_DISABLE_SIGFPE
signal(SIGFPE, SIG_IGN);
@@
-412,10
+416,6
@@
int main(
for (i=0;i<argc;i++)
printf("%d-'%s'\n",i,argv[i]); */
while (1) {
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;
int option_index = 0;
int opt;