From: Florian Forster Date: Sun, 22 Jun 2008 13:10:19 +0000 (+0200) Subject: src/rrdd.c: Remove unused variables and functions. X-Git-Url: https://git.octo.it/?p=rrdd.git;a=commitdiff_plain;h=7971f5a433076b5e53d1cfcbed9186aa9a4b235b src/rrdd.c: Remove unused variables and functions. --- diff --git a/src/rrdd.c b/src/rrdd.c index e82f0d9..272b859 100644 --- a/src/rrdd.c +++ b/src/rrdd.c @@ -96,30 +96,6 @@ static void sig_term_handler (int signal) /* {{{ */ do_shutdown++; } /* }}} void sig_term_handler */ -static int cache_tree_compare (const void *v0, const void *v1) /* {{{ */ -{ - cache_item_t *c0 = (cache_item_t *) v0; - cache_item_t *c1 = (cache_item_t *) v1; - - assert (c0->file != NULL); - assert (c1->file != NULL); - - return (strcmp (c0->file, c1->file)); -} /* }}} int cache_tree_compare */ - -static void cache_tree_free (void *v) /* {{{ */ -{ - cache_item_t *c = (cache_item_t *) v; - - assert (c->values_num == 0); - assert ((c->flags & CI_FLAGS_IN_TREE) != 0); - assert ((c->flags & CI_FLAGS_IN_QUEUE) == 0); - - free (c->file); - c->file = NULL; - free (c); -} /* }}} void cache_tree_free */ - static void *queue_thread_main (void *args) /* {{{ */ { pthread_mutex_lock (&cache_lock); @@ -596,7 +572,6 @@ static int close_listen_sockets (void) /* {{{ */ static void *listen_thread_main (void *args) /* {{{ */ { - char buffer[4096]; struct pollfd *pollfds; int pollfds_num; int status; @@ -724,7 +699,9 @@ static void *listen_thread_main (void *args) /* {{{ */ static int daemonize (void) /* {{{ */ { +#if !RRDD_DEBUG pid_t child; +#endif int status; #if !RRDD_DEBUG