src/irc_net_connect.c
branchnew-transport
changeset 154 f4472119de3b
parent 153 d35e7cb3a489
child 156 6534a4ac957b
equal deleted inserted replaced
153:d35e7cb3a489 154:f4472119de3b
     3 #include "log.h"
     3 #include "log.h"
     4 
     4 
     5 #include <time.h>
     5 #include <time.h>
     6 #include <assert.h>
     6 #include <assert.h>
     7 
     7 
     8 void irc_net_disconnect (struct irc_net *net, struct error_info *err)
     8 void irc_net_disconnect (struct irc_net *net)
     9 {
     9 {
    10     struct irc_chan *chan = NULL;
    10     struct irc_chan *chan = NULL;
    11 
       
    12     (void) err;
       
    13 
    11 
    14     // mark
    12     // mark
    15     net->connected = false;
    13     net->connected = false;
    16 
    14 
    17     // destroy connection and set NULL
    15     // destroy connection and set NULL