Explorar o código

DPRelay: DPRelaySink_Init: remove reactor argument

ambrop7 %!s(int64=15) %!d(string=hai) anos
pai
achega
acee0448ff
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      client/DPRelay.c
  2. 1 1
      client/DPRelay.h
  3. 1 1
      client/client.c

+ 1 - 1
client/DPRelay.c

@@ -257,7 +257,7 @@ void DPRelaySource_PrepareFreeDestinations (DPRelaySource *o)
     }
 }
 
-void DPRelaySink_Init (DPRelaySink *o, peerid_t dest_id, BReactor *reactor)
+void DPRelaySink_Init (DPRelaySink *o, peerid_t dest_id)
 {
     // init arguments
     o->dest_id = dest_id;

+ 1 - 1
client/DPRelay.h

@@ -75,7 +75,7 @@ void DPRelaySource_Init (DPRelaySource *o, DPRelayRouter *router, peerid_t sourc
 void DPRelaySource_Free (DPRelaySource *o);
 void DPRelaySource_PrepareFreeDestinations (DPRelaySource *o);
 
-void DPRelaySink_Init (DPRelaySink *o, peerid_t dest_id, BReactor *reactor);
+void DPRelaySink_Init (DPRelaySink *o, peerid_t dest_id);
 void DPRelaySink_Free (DPRelaySink *o);
 void DPRelaySink_Attach (DPRelaySink *o, DataProtoDest *dest);
 void DPRelaySink_Detach (DPRelaySink *o);

+ 1 - 1
client/client.c

@@ -1245,7 +1245,7 @@ int peer_add (peerid_t id, int flags, const uint8_t *cert, int cert_len)
     DPRelaySource_Init(&peer->relay_source, &relay_router, peer->id, &ss);
     
     // init relay sink
-    DPRelaySink_Init(&peer->relay_sink, peer->id, &ss);
+    DPRelaySink_Init(&peer->relay_sink, peer->id);
     
     // have no link
     peer->have_link = 0;