{http,dccp}_send.c: Kill unused variable "self".
authorAndre Noll <maan@systemlinux.org>
Sat, 2 Feb 2008 11:44:59 +0000 (12:44 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 2 Feb 2008 11:44:59 +0000 (12:44 +0100)
dccp_send.c
http_send.c

index 55454aaa30c807bcec4f26ad8be6cd01a3bc2085..887801a92f3a30128928e95e5232d7c39d4a3b59 100644 (file)
@@ -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));
index a19836af52101fa00aa2b9fdc2d5a52d3c91ec31..25d9ac18cefdd5353909864aa6ec1001061d9170 100644 (file)
@@ -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 */