src/transport.c
changeset 46 7471e31bb278
parent 41 b30cc1842d9c
child 48 9ff5d2dfa75a
     1.1 --- a/src/transport.c	Fri Jan 16 18:39:27 2015 +0100
     1.2 +++ b/src/transport.c	Sat Jan 24 15:26:40 2015 +0100
     1.3 @@ -1,4 +1,5 @@
     1.4  #include "pEp_internal.h"
     1.5 +#include "trans_auto.h"
     1.6  
     1.7  #include <memory.h>
     1.8  #include <assert.h>
     1.9 @@ -13,7 +14,9 @@
    1.10      assert(PEP_trans__count == 1);
    1.11      memset(transports, 0, sizeof(PEP_transport_t) * PEP_trans__count);
    1.12  
    1.13 -    transports[0].id = PEP_trans_auto;
    1.14 +    transports[PEP_trans_auto].id = PEP_trans_auto;
    1.15 +    transports[PEP_trans_auto].sendto = auto_sendto;
    1.16 +    transports[PEP_trans_auto].readnext = auto_readnext;
    1.17  
    1.18      return PEP_STATUS_OK;
    1.19  }