fix peer ids
[oweals/gnunet.git] / src / transport / plugin_transport_wlan.c
index 298d5565339edfb9f171ac85f6224ed9769b6036..42ed771f45447a3fc15064d94c058f432cef7999 100644 (file)
@@ -692,7 +692,7 @@ session_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   session->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   timeout = GNUNET_TIME_absolute_get_remaining (session->timeout);
-  if (0 == timeout.rel_value) 
+  if (0 == timeout.rel_value_us
   {
     free_session (session);
     return;
@@ -1003,7 +1003,7 @@ macendpoint_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   endpoint->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   timeout = GNUNET_TIME_absolute_get_remaining (endpoint->timeout);
-  if (0 == timeout.rel_value) 
+  if (0 == timeout.rel_value_us
   {
     free_macendpoint (endpoint);
     return;
@@ -1057,6 +1057,7 @@ create_macendpoint (struct Plugin *plugin,
   return pos;
 }
 
+
 /**
  * Function obtain the network type for a session
  *
@@ -1065,12 +1066,14 @@ create_macendpoint (struct Plugin *plugin,
  * @return the network type in HBO or GNUNET_SYSERR
  */
 static enum GNUNET_ATS_Network_Type
-wlan_get_network (void *cls, void *session)
+wlan_get_network (void *cls, 
+                 struct Session *session)
 {
-       GNUNET_assert (NULL != session);
-       return GNUNET_ATS_NET_WLAN;
+  GNUNET_assert (NULL != session);
+  return GNUNET_ATS_NET_WLAN;
 }
 
+
 /**
  * Creates a new outbound session the transport service will use to send data to the
  * peer