tolerate additional IPv4 address now available for gnunet.org
[oweals/gnunet.git] / src / rps / rps-test_util.h
index 3094b9bead3f676e5286c0b9cdf9b701138e4421..5aa0688d577137e42feb727f9ab28a652ad299a3 100644 (file)
@@ -73,13 +73,7 @@ close_all_files ();
            "Failed to create tmp_buf\n");\
       break;\
     }\
-    size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s \n", tmp_buf);\
-    if (0 > size)\
-    {\
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
-           "Failed to create tmp_buf\n");\
-      break;\
-    }\
+    (void) strncat(tmp_buf,"\n",512);\
     GNUNET_DISK_file_write (get_file_handle (file_name),\
                             tmp_buf,\
                             strnlen (tmp_buf, 512));\
@@ -96,13 +90,7 @@ close_all_files ();
            "Failed to create tmp_buf\n");\
       break;\
     }\
-    size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),"%s\n", tmp_buf);\
-    if (0 > size)\
-    {\
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,\
-           "Failed to create tmp_buf\n");\
-      break;\
-    }\
+    (void) strncat(tmp_buf,"\n",len);\
     GNUNET_DISK_file_write (get_file_handle (file_name),\
                             tmp_buf,\
                             strnlen (tmp_buf, len));\
@@ -113,7 +101,7 @@ close_all_files ();
 #endif /* TO_FILE */
 
 char *
-store_prefix_file_name (const struct GNUNET_PeerIdentity *peer,
+store_prefix_file_name (const unsigned int index,
                         const char *prefix);
 
 void