aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps-test_util.h')
-rw-r--r--src/rps/rps-test_util.h5
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);
37struct GNUNET_CRYPTO_AuthKey 37struct GNUNET_CRYPTO_AuthKey
38string_to_auth_key (const char *str); 38string_to_auth_key (const char *str);
39 39
40char *
41create_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,\