aboutsummaryrefslogtreecommitdiff
path: root/src/testing/gnunet-testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-14 14:55:37 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-14 14:55:37 +0000
commit64ab4a8d604f250ec1347c929c6e35efafbca99a (patch)
tree074ae91a9eef34d50745fee63865c8d7e91410ba /src/testing/gnunet-testing.c
parent5934edc743ab91ef377df46ce327fb660b784ba4 (diff)
downloadgnunet-64ab4a8d604f250ec1347c929c6e35efafbca99a.tar.gz
gnunet-64ab4a8d604f250ec1347c929c6e35efafbca99a.zip
-use 2048
Diffstat (limited to 'src/testing/gnunet-testing.c')
-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",