{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 55454aa..887801a 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 a19836a..25d9ac1 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 */