gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24121 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r24121 - gnunet/src/gns
Date: Sat, 29 Sep 2012 00:14:56 +0200

Author: grothoff
Date: 2012-09-29 00:14:56 +0200 (Sat, 29 Sep 2012)
New Revision: 24121

Modified:
   gnunet/src/gns/gnunet-gns-proxy.c
   gnunet/src/gns/gnunet-service-gns_resolver.c
Log:
-dce, stylistic fixes

Modified: gnunet/src/gns/gnunet-gns-proxy.c
===================================================================
--- gnunet/src/gns/gnunet-gns-proxy.c   2012-09-28 22:09:59 UTC (rev 24120)
+++ gnunet/src/gns/gnunet-gns-proxy.c   2012-09-28 22:14:56 UTC (rev 24121)
@@ -1189,11 +1189,7 @@
   }
   
   if (bytes_to_copy + copied > max)
-    bytes_to_copy = max-copied;
-
-  if (0 > bytes_to_copy)
-    bytes_to_copy = 0;
-  
+    bytes_to_copy = max - copied;
   memcpy (buf+copied, ctask->buffer_read_ptr, bytes_to_copy);
   ctask->buffer_read_ptr += bytes_to_copy;
   copied += bytes_to_copy;

Modified: gnunet/src/gns/gnunet-service-gns_resolver.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns_resolver.c        2012-09-28 22:09:59 UTC 
(rev 24120)
+++ gnunet/src/gns/gnunet-service-gns_resolver.c        2012-09-28 22:14:56 UTC 
(rev 24121)
@@ -3622,7 +3622,7 @@
    * No PSEU found.
    * continue with next authority if exists
    */
-  if ((rh->authority_chain_head->next == NULL))
+  if (NULL == rh->authority_chain_head->next)
   {
     finish_shorten (rh, nsh);
     return;
@@ -3735,7 +3735,7 @@
      * No PSEU found.
      * continue with next authority if exists
      */
-    if ((rh->authority_chain_head->next == NULL))
+    if (NULL == rh->authority_chain_head->next)
     {
       finish_shorten (rh, nsh);
       return;
@@ -3857,7 +3857,7 @@
      * No PSEU found.
      * continue with next authority if exists
      */
-    if ((rh->authority_chain_head->next == NULL))
+    if (NULL == rh->authority_chain_head->next)
     {
       finish_shorten (rh, nsh);
       return;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]