diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-26 09:08:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-26 09:08:21 +0100 |
commit | 3495689e26efb8f9690945d3c7f4cd68eaeaaf86 (patch) | |
tree | d038a81b8082842895e3c826ef213d7d12e9b6bc /src/rps/rps-test_util.h | |
parent | 0e3f1038f95d67ffc029debfce7e60e6de05a135 (diff) | |
download | gnunet-3495689e26efb8f9690945d3c7f4cd68eaeaaf86.tar.gz gnunet-3495689e26efb8f9690945d3c7f4cd68eaeaaf86.zip |
fix /tmp/rps directory creation, fix linkage, DCE
Diffstat (limited to 'src/rps/rps-test_util.h')
-rw-r--r-- | src/rps/rps-test_util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h index 78d1e0a26..ace833034 100644 --- a/src/rps/rps-test_util.h +++ b/src/rps/rps-test_util.h | |||
@@ -37,8 +37,6 @@ auth_key_to_string (struct GNUNET_CRYPTO_AuthKey auth_key); | |||
37 | struct GNUNET_CRYPTO_AuthKey | 37 | struct GNUNET_CRYPTO_AuthKey |
38 | string_to_auth_key (const char *str); | 38 | string_to_auth_key (const char *str); |
39 | 39 | ||
40 | char * | ||
41 | create_file (const char *name); | ||
42 | 40 | ||
43 | /** | 41 | /** |
44 | * @brief Get file handle | 42 | * @brief Get file handle |
@@ -64,9 +62,10 @@ close_all_files (); | |||
64 | * This function is used to facilitate writing important information to disk | 62 | * This function is used to facilitate writing important information to disk |
65 | */ | 63 | */ |
66 | #ifdef TO_FILE | 64 | #ifdef TO_FILE |
67 | #define to_file(file_name, ...) do { if (NULL == file_name) { GNUNET_break(0); return;} \ | 65 | #define to_file(file_name, ...) do { \ |
68 | char tmp_buf[512] = "";\ | 66 | char tmp_buf[512] = "";\ |
69 | int size;\ | 67 | int size;\ |
68 | if (NULL == file_name) return; \ | ||
70 | size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\ | 69 | size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\ |
71 | if (0 > size)\ | 70 | if (0 > size)\ |
72 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\ | 71 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\ |