Commit 9209a343 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

More portability changes: include config.h and compat.h, get rid of __unused.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@116 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7440ef5a
......@@ -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"
......
......@@ -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"
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -16,7 +16,7 @@
#include <unistd.h>
#include <sys/wait.h>
#include <sys/queue.h>
#include <queue.h>
#include <event.h>
#include <sbuf.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment