aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-09 00:46:16 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-09 00:46:16 +0200
commit4ac8228b8f4940c0466b5d8c596005040b1647d0 (patch)
tree03515eba19299a5ae038d8d7640c28ede48d96ae /src/rps/rps-test_util.h
parente05d529024e267dda1d65dd982a1d10a222ec7ca (diff)
downloadgnunet-4ac8228b8f4940c0466b5d8c596005040b1647d0.tar.gz
gnunet-4ac8228b8f4940c0466b5d8c596005040b1647d0.zip
RPS: Some fixes
Diffstat (limited to 'src/rps/rps-test_util.h')
-rw-r--r--src/rps/rps-test_util.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h
index 3094b9bea..d5a2db9de 100644
--- a/src/rps/rps-test_util.h
+++ b/src/rps/rps-test_util.h
@@ -73,13 +73,7 @@ close_all_files ();
73 "Failed to create tmp_buf\n");\ 73 "Failed to create tmp_buf\n");\
74 break;\ 74 break;\
75 }\ 75 }\
76 size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s \n", tmp_buf);\ 76 (void) strncat(tmp_buf,"\n",512);\
77 if (0 > size)\
78 {\
79 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
80 "Failed to create tmp_buf\n");\
81 break;\
82 }\
83 GNUNET_DISK_file_write (get_file_handle (file_name),\ 77 GNUNET_DISK_file_write (get_file_handle (file_name),\
84 tmp_buf,\ 78 tmp_buf,\
85 strnlen (tmp_buf, 512));\ 79 strnlen (tmp_buf, 512));\
@@ -96,13 +90,7 @@ close_all_files ();
96 "Failed to create tmp_buf\n");\ 90 "Failed to create tmp_buf\n");\
97 break;\ 91 break;\
98 }\ 92 }\
99 size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s\n", tmp_buf);\ 93 (void) strncat(tmp_buf,"\n",len);\
100 if (0 > size)\
101 {\
102 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
103 "Failed to create tmp_buf\n");\
104 break;\
105 }\
106 GNUNET_DISK_file_write (get_file_handle (file_name),\ 94 GNUNET_DISK_file_write (get_file_handle (file_name),\
107 tmp_buf,\ 95 tmp_buf,\
108 strnlen (tmp_buf, len));\ 96 strnlen (tmp_buf, len));\