aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/gnunet-testing.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c
index eb85e155e..8c92068ab 100644
--- a/src/testing/gnunet-testing.c
+++ b/src/testing/gnunet-testing.c
@@ -28,8 +28,6 @@
28#include "gnunet_testing_lib.h" 28#include "gnunet_testing_lib.h"
29 29
30 30
31#define HOSTKEYFILESIZE 1024
32
33/** 31/**
34 * Final status code. 32 * Final status code.
35 */ 33 */
@@ -119,7 +117,7 @@ create_unique_cfgs (const char * template, const unsigned int no)
119static int 117static int
120create_hostkeys (const unsigned int no) 118create_hostkeys (const unsigned int no)
121{ 119{
122 static char pad[HOSTKEYFILESIZE]; 120 static char pad[GNUNET_TESTING_HOSTKEYFILESIZE];
123 struct GNUNET_TESTING_System *system; 121 struct GNUNET_TESTING_System *system;
124 struct GNUNET_PeerIdentity id; 122 struct GNUNET_PeerIdentity id;
125 struct GNUNET_DISK_FileHandle *fd; 123 struct GNUNET_DISK_FileHandle *fd;
@@ -146,10 +144,10 @@ create_hostkeys (const unsigned int no)
146 ret = GNUNET_DISK_file_write (fd, pkb, 144 ret = GNUNET_DISK_file_write (fd, pkb,
147 ntohs (pkb->size)); 145 ntohs (pkb->size));
148 GNUNET_assert (ntohs (pkb->size) == ret); 146 GNUNET_assert (ntohs (pkb->size) == ret);
149 GNUNET_assert (ntohs (pkb->size) < HOSTKEYFILESIZE); 147 GNUNET_assert (ntohs (pkb->size) < GNUNET_TESTING_HOSTKEYFILESIZE);
150 GNUNET_assert (HOSTKEYFILESIZE - ret == 148 GNUNET_assert (GNUNET_TESTING_HOSTKEYFILESIZE - ret ==
151 GNUNET_DISK_file_write (fd, pad, 149 GNUNET_DISK_file_write (fd, pad,
152 HOSTKEYFILESIZE - ret)); 150 GNUNET_TESTING_HOSTKEYFILESIZE - ret));
153 151
154 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd)); 152 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd));
155 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", 153 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing",