From 3495689e26efb8f9690945d3c7f4cd68eaeaaf86 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Feb 2019 09:08:21 +0100 Subject: fix /tmp/rps directory creation, fix linkage, DCE --- src/rps/rps-test_util.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/rps/rps-test_util.h') 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); struct GNUNET_CRYPTO_AuthKey string_to_auth_key (const char *str); -char * -create_file (const char *name); /** * @brief Get file handle @@ -64,9 +62,10 @@ close_all_files (); * This function is used to facilitate writing important information to disk */ #ifdef TO_FILE -#define to_file(file_name, ...) do { if (NULL == file_name) { GNUNET_break(0); return;} \ +#define to_file(file_name, ...) do { \ char tmp_buf[512] = "";\ int size;\ + if (NULL == file_name) return; \ size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\ if (0 > size)\ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\ -- cgit v1.2.3