[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23499 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23499 - gnunet/src/mesh |
Date: |
Wed, 29 Aug 2012 16:12:22 +0200 |
Author: bartpolot
Date: 2012-08-29 16:12:22 +0200 (Wed, 29 Aug 2012)
New Revision: 23499
Modified:
gnunet/src/mesh/mesh_api.c
Log:
- Remove deprecated code, coverity 10236
Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c 2012-08-29 13:18:28 UTC (rev 23498)
+++ gnunet/src/mesh/mesh_api.c 2012-08-29 14:12:22 UTC (rev 23499)
@@ -653,7 +653,7 @@
/**
- * Add a transmit handle to the transmission queue by priority and set the
+ * Add a transmit handle to the transmission queue and set the
* timeout if needed.
*
* @param h mesh handle with the queue head and tail
@@ -663,16 +663,7 @@
add_to_queue (struct GNUNET_MESH_Handle *h,
struct GNUNET_MESH_TransmitHandle *th)
{
- struct GNUNET_MESH_TransmitHandle *p;
-
- p = h->th_head;
- while ((NULL != p))
- p = p->next;
- if (NULL == p)
- p = h->th_tail;
- else
- p = p->prev;
- GNUNET_CONTAINER_DLL_insert_after (h->th_head, h->th_tail, p, th);
+ GNUNET_CONTAINER_DLL_insert_tail (h->th_head, h->th_tail, th);
if (GNUNET_TIME_UNIT_FOREVER_ABS.abs_value == th->timeout.abs_value)
return;
th->timeout_task =
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23499 - gnunet/src/mesh,
gnunet <=