]> err.no Git - varnish/commitdiff
More portability changes: include config.h and compat.h, get rid of __unused.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Apr 2006 10:09:37 +0000 (10:09 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Apr 2006 10:09:37 +0000 (10:09 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@116 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c
varnish-cache/bin/varnishd/cache_backend.c
varnish-cache/bin/varnishd/cache_main.c
varnish-cache/bin/varnishd/cache_pool.c
varnish-cache/bin/varnishd/mgt_child.c

index b6857322b907e74997f13e55357774e6b7de6bbc..f5615e17f6b04a661af2bdce5e69f48faabfb8fd 100644 (file)
@@ -16,6 +16,8 @@
 #include <sbuf.h>
 #include <event.h>
 
+#include "config.h"
+#include "compat.h"
 #include "libvarnish.h"
 #include "vcl_lang.h"
 #include "heritage.h"
index 432cbbd9cfa159556c46fb0a96369af6237f0b91..5bf8e6cfb31c0c77f6aabe89b86ec42db791df15 100644 (file)
@@ -2,17 +2,18 @@
  * $Id$
  */
 
-#include <assert.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <sys/queue.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+
+#include <assert.h>
 #include <netdb.h>
+#include <pthread.h>
+#include <queue.h>
 #include <sbuf.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 #include "libvarnish.h"
 #include "vcl_lang.h"
index 15869c708214ce3220a2f158fddfb5bc2d97b7eb..b96806043225b1d44149af9ea2de75c5895be460 100644 (file)
@@ -53,9 +53,10 @@ arm_keepalive(void)
 /*--------------------------------------------------------------------*/
 
 static void
-cli_func_url_query(struct cli *cli, char **av, void *priv __unused)
+cli_func_url_query(struct cli *cli, char **av, void *priv)
 {
 
+       (void)priv;
        cli_out(cli, "url <%s>", av[2]);
        cli_result(cli, CLIS_UNIMPL);
 }
@@ -63,10 +64,11 @@ cli_func_url_query(struct cli *cli, char **av, void *priv __unused)
 /*--------------------------------------------------------------------*/
 
 static void
-cli_func_ping(struct cli *cli, char **av, void *priv __unused)
+cli_func_ping(struct cli *cli, char **av, void *priv)
 {
        time_t t;
 
+       (void)priv;
        VSL(SLT_CLI, 0, av[1]);
        arm_keepalive();
        if (av[2] != NULL) {
index a1c30203ddb1c7b9602ee3815bf4b74687f6a51a..d1a15939df9ee1bc39e35e4a50dd6b907703586f 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdio.h>
 #include <assert.h>
 #include <pthread.h>
+#include <queue.h>
 
 #include "libvarnish.h"
 #include "vcl_lang.h"
@@ -15,10 +16,11 @@ static TAILQ_HEAD(, sess) shd = TAILQ_HEAD_INITIALIZER(shd);
 static pthread_cond_t  shdcnd;
 
 static void *
-CacheWorker(void *priv __unused)
+CacheWorker(void *priv)
 {
        struct sess *sp;
 
+       (void)priv;
        AZ(pthread_mutex_lock(&sessmtx));
        while (1) {
                while (1) {
index e0ca92a29c1add6a60ce274d25c2aba5e2abb345..012b5934599b36b0acefd004f9a4d2d2111e2205 100644 (file)
@@ -16,7 +16,7 @@
 #include <unistd.h>
 
 #include <sys/wait.h>
-#include <sys/queue.h>
+#include <queue.h>
 
 #include <event.h>
 #include <sbuf.h>