gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 04/04: RPS: Use GNUNET_MIN instead of own min


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 04/04: RPS: Use GNUNET_MIN instead of own min
Date: Mon, 29 Oct 2018 18:07:36 +0100

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

commit b5c8dbf1f06aa07996c799e8824eff973e12eb00
Author: Julius Bünger <address@hidden>
AuthorDate: Mon Oct 29 17:54:53 2018 +0100

    RPS: Use GNUNET_MIN instead of own min
---
 src/rps/rps-test_util.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index f3367e01b..a6ea033cd 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -45,7 +45,6 @@
 
 #ifdef TO_FILE
 
-#define min(x,y) ((x) > (y) ? (y) : (x))
 
 /**
  * @brief buffer for storing the unaligned bits for the next write
@@ -201,7 +200,7 @@ to_file_raw_unaligned (const char *file_name,
     LOG (GNUNET_ERROR_TYPE_DEBUG,
         "number of bits needed to align unaligned bit: %u\n",
          num_bits_to_align);
-    num_bits_to_move  = min (num_bits_to_align, num_bits_needed_iter);
+    num_bits_to_move  = GNUNET_MIN (num_bits_to_align, num_bits_needed_iter);
     LOG (GNUNET_ERROR_TYPE_DEBUG,
         "number of bits of new byte to move: %u\n",
          num_bits_to_move);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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