diff options
author | Julius Bünger <buenger@mytum.de> | 2018-10-29 17:54:53 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-10-29 18:05:48 +0100 |
commit | b5c8dbf1f06aa07996c799e8824eff973e12eb00 (patch) | |
tree | 3a32a712156ca68c5c18443fccb1b0489894510c /src/rps/rps-test_util.c | |
parent | 1d59b2b7a532a0348198a91babbc841109b25935 (diff) | |
download | gnunet-b5c8dbf1f06aa07996c799e8824eff973e12eb00.tar.gz gnunet-b5c8dbf1f06aa07996c799e8824eff973e12eb00.zip |
RPS: Use GNUNET_MIN instead of own min
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r-- | src/rps/rps-test_util.c | 3 |
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 @@ | |||
45 | 45 | ||
46 | #ifdef TO_FILE | 46 | #ifdef TO_FILE |
47 | 47 | ||
48 | #define min(x,y) ((x) > (y) ? (y) : (x)) | ||
49 | 48 | ||
50 | /** | 49 | /** |
51 | * @brief buffer for storing the unaligned bits for the next write | 50 | * @brief buffer for storing the unaligned bits for the next write |
@@ -201,7 +200,7 @@ to_file_raw_unaligned (const char *file_name, | |||
201 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 200 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
202 | "number of bits needed to align unaligned bit: %u\n", | 201 | "number of bits needed to align unaligned bit: %u\n", |
203 | num_bits_to_align); | 202 | num_bits_to_align); |
204 | num_bits_to_move = min (num_bits_to_align, num_bits_needed_iter); | 203 | num_bits_to_move = GNUNET_MIN (num_bits_to_align, num_bits_needed_iter); |
205 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 204 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
206 | "number of bits of new byte to move: %u\n", | 205 | "number of bits of new byte to move: %u\n", |
207 | num_bits_to_move); | 206 | num_bits_to_move); |