]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
remove unused variables
authorSimon Arlott <sa.me.uk>
Fri, 4 Aug 2017 20:01:17 +0000 (21:01 +0100)
committerSimon Arlott <sa.me.uk>
Fri, 4 Aug 2017 20:01:29 +0000 (21:01 +0100)
authd/providers/ident.c
authd/providers/rdns.c

index e6f08b198affa6e2d274ae2f055b32ff512142a9..d707469d889aa3609f026b4c5f62824dae878b6a 100644 (file)
@@ -119,7 +119,6 @@ static void
 read_ident_reply(rb_fde_t *F, void *data)
 {
        struct auth_client *auth = data;
-       struct ident_query *query;
        char buf[IDENT_BUFSIZE + 1];    /* buffer to read auth reply into */
        ident_message message = REPORT_FAIL;
        char *s = NULL;
@@ -127,10 +126,6 @@ read_ident_reply(rb_fde_t *F, void *data)
        ssize_t len;
        int count;
 
-       lrb_assert(auth != NULL);
-       query = get_provider_data(auth, SELF_PID);
-       lrb_assert(query != NULL);
-
        len = rb_read(F, buf, IDENT_BUFSIZE);
        if(len < 0 && rb_ignore_errno(errno))
        {
index ff0bb07802f7b4dc74d964d1f8bd3cd3440f972c..b646846059615bf0937a5450a86173d1220ae869 100644 (file)
@@ -58,9 +58,6 @@ static void
 dns_answer_callback(const char *res, bool status, query_type type, void *data)
 {
        struct auth_client *auth = data;
-       struct user_query *query = get_provider_data(auth, SELF_PID);
-
-       lrb_assert(query != NULL);
 
        if(res == NULL || status == false)
                client_fail(auth, REPORT_FAIL);