src/transport.c
branchnew-transport
changeset 157 1e5674d0eec4
parent 156 6534a4ac957b
child 159 d3e253d7281a
equal deleted inserted replaced
156:6534a4ac957b 157:1e5674d0eec4
    10     // not already bound
    10     // not already bound
    11     assert(!transport->type);
    11     assert(!transport->type);
    12 
    12 
    13     // store
    13     // store
    14     transport->type = type;
    14     transport->type = type;
    15     transport->info = *info;
    15 
       
    16     if (info)
       
    17         transport->info = *info;
    16 }
    18 }
    17 
    19 
    18 void* transport_check (transport_t *transport, const struct transport_type *type)
    20 void* transport_check (transport_t *transport, const struct transport_type *type)
    19 {
    21 {
    20     // sanity check
    22     // sanity check