]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_dingaling: Remove unused but set variables (GCC-4.6 -Wunused-but-set-variable)
authorStefan Knoblich <stkn@openisdn.net>
Sat, 17 Sep 2011 23:14:56 +0000 (01:14 +0200)
committerStefan Knoblich <stkn@openisdn.net>
Sat, 17 Sep 2011 23:14:56 +0000 (01:14 +0200)
Subject and type event headers were never used in chat_send(), remove them.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index a7e85371803d1d2ca41240f11ad0a1334f985c5e..527a2a0fa2bbc668443e3fc91a046291009e6a0a 100644 (file)
@@ -496,17 +496,13 @@ static switch_status_t chat_send(switch_event_t *message_event)
        const char *proto;
        const char *from; 
        const char *to;
-       const char *subject;
        const char *body;
-       const char *type;
        const char *hint;
 
        proto = switch_event_get_header(message_event, "proto");
        from = switch_event_get_header(message_event, "from");
        to = switch_event_get_header(message_event, "to");
-       subject = switch_event_get_header(message_event, "subject");
        body = switch_event_get_body(message_event);
-       type = switch_event_get_header(message_event, "type");
        hint = switch_event_get_header(message_event, "hint");
 
        switch_assert(proto != NULL);