From f47f21ba8703dfbd05ad8faf1c75869ff7f97f38 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 2 Feb 2008 12:44:59 +0100 Subject: [PATCH] {http,dccp}_send.c: Kill unused variable "self". --- dccp_send.c | 2 -- http_send.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/dccp_send.c b/dccp_send.c index 55454aaa..887801a9 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -32,7 +32,6 @@ /** the list of connected clients **/ static struct list_head clients; static int listen_fd = -1; -static struct sender *self; /** Maximal number of bytes in a chunk queue. */ #define DCCP_MAX_PENDING_BYTES 40000 @@ -269,7 +268,6 @@ void dccp_send_init(struct sender *s) s->client_cmds[SENDER_ALLOW] = NULL; s->client_cmds[SENDER_ADD] = NULL; s->client_cmds[SENDER_DELETE] = NULL; - self = s; ret = dccp_open(); if (ret < 0) PARA_ERROR_LOG("%s\n", para_strerror(-ret)); diff --git a/http_send.c b/http_send.c index a19836af..25d9ac18 100644 --- a/http_send.c +++ b/http_send.c @@ -72,7 +72,6 @@ struct http_client { }; static int listen_fd = -1, numclients; -static struct sender *self; static void http_shutdown_client(struct http_client *hc, const char *msg) @@ -436,7 +435,6 @@ void http_send_init(struct sender *s) s->client_cmds[SENDER_ALLOW] = http_com_allow; s->client_cmds[SENDER_ADD] = NULL; s->client_cmds[SENDER_DELETE] = NULL; - self = s; acl_init(&http_acl, conf.http_access_arg, conf.http_access_given); if (!conf.http_no_autostart_given) http_open(); /* ignore errors */ -- 2.39.5