Removing all the tests for the bluetooth transport plugin.
[oweals/gnunet.git] / src / transport / plugin_transport_unix.c
index 211408f18ed62cc17e00dac3aa5aebf1e8753560..2087d30e5ab972a5446ae0731604d4ae78cec3ae 100644 (file)
@@ -610,7 +610,6 @@ unix_real_send (void *cls,
 
 resend:
   /* Send the data */
-  sent = 0;
   sent = GNUNET_NETWORK_socket_sendto (send_handle, msgbuf, msgbuf_size, sb, sbs);
 
   if (GNUNET_SYSERR == sent)
@@ -701,7 +700,7 @@ get_session_it (void *cls,
   struct GetSessionIteratorContext *gsi = cls;
   struct Session *s = value;
 
-  if ( (gsi->addrlen == s->addrlen) &&
+  if ((GNUNET_NO == s->inbound) && (gsi->addrlen == s->addrlen) &&
        (0 == memcmp (gsi->address, s->addr, s->addrlen)) )
   {
     gsi->res = s;
@@ -1440,7 +1439,7 @@ unix_string_to_address (void *cls, const char *addr, uint16_t addrlen,
   address = NULL;
   plugin = NULL;
   optionstr = NULL;
-  options = 0;
+
   if ((NULL == addr) || (addrlen == 0))
   {
     GNUNET_break (0);