gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26108 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r26108 - gnunet/src/testing
Date: Thu, 14 Feb 2013 15:55:38 +0100

Author: grothoff
Date: 2013-02-14 15:55:37 +0100 (Thu, 14 Feb 2013)
New Revision: 26108

Modified:
   gnunet/src/testing/gnunet-testing.c
Log:
-use 2048

Modified: gnunet/src/testing/gnunet-testing.c
===================================================================
--- gnunet/src/testing/gnunet-testing.c 2013-02-14 14:39:51 UTC (rev 26107)
+++ gnunet/src/testing/gnunet-testing.c 2013-02-14 14:55:37 UTC (rev 26108)
@@ -28,8 +28,6 @@
 #include "gnunet_testing_lib.h"
 
 
-#define HOSTKEYFILESIZE 1024
-
 /**
  * Final status code.
  */
@@ -119,7 +117,7 @@
 static int
 create_hostkeys (const unsigned int no)
 {
-  static char pad[HOSTKEYFILESIZE];
+  static char pad[GNUNET_TESTING_HOSTKEYFILESIZE];
   struct GNUNET_TESTING_System *system;
   struct GNUNET_PeerIdentity id;
   struct GNUNET_DISK_FileHandle *fd;
@@ -146,10 +144,10 @@
   ret = GNUNET_DISK_file_write (fd, pkb, 
                                ntohs (pkb->size));
   GNUNET_assert (ntohs (pkb->size) == ret);
-  GNUNET_assert (ntohs (pkb->size) < HOSTKEYFILESIZE);
-  GNUNET_assert (HOSTKEYFILESIZE - ret ==
+  GNUNET_assert (ntohs (pkb->size) < GNUNET_TESTING_HOSTKEYFILESIZE);
+  GNUNET_assert (GNUNET_TESTING_HOSTKEYFILESIZE - ret ==
                 GNUNET_DISK_file_write (fd, pad, 
-                                        HOSTKEYFILESIZE - ret));
+                                        GNUNET_TESTING_HOSTKEYFILESIZE - ret));
   
   GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd));
   GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]