summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-10-29 17:54:53 +0100
committerJulius Bünger <buenger@mytum.de>2018-10-29 18:05:48 +0100
commitb5c8dbf1f06aa07996c799e8824eff973e12eb00 (patch)
tree3a32a712156ca68c5c18443fccb1b0489894510c /src
parent1d59b2b7a532a0348198a91babbc841109b25935 (diff)
RPS: Use GNUNET_MIN instead of own min
Diffstat (limited to 'src')
-rw-r--r--src/rps/rps-test_util.c3
1 files changed, 1 insertions, 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);