aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
committerng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
commit6e599264ad13e8fc105493d74d7c11d46f8739ed (patch)
tree169bef1ecbade5a659831fb169f3ae6943af127f /src/hostlist
parent4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff)
downloadgnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz
gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip
first step to remove plibc
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/hostlists_learn_peer2.filebin71 -> 72 bytes
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_learning.c4
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_reconnect.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/hostlist/hostlists_learn_peer2.file b/src/hostlist/hostlists_learn_peer2.file
index 79df4dfe8..19d031c3e 100644
--- a/src/hostlist/hostlists_learn_peer2.file
+++ b/src/hostlist/hostlists_learn_peer2.file
Binary files differ
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
index f92215679..a18255e6d 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
@@ -424,7 +424,7 @@ setup_learn_peer (struct PeerContext *p,
424 { 424 {
425 if (GNUNET_YES == GNUNET_DISK_file_test (filename)) 425 if (GNUNET_YES == GNUNET_DISK_file_test (filename))
426 { 426 {
427 result = UNLINK (filename); 427 result = unlink (filename);
428 if (result == 0) 428 if (result == 0)
429 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 429 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
430 _("Hostlist file `%s' was removed\n"), 430 _("Hostlist file `%s' was removed\n"),
@@ -577,7 +577,7 @@ main (int argc, char *argv[])
577 if (GNUNET_YES == 577 if (GNUNET_YES ==
578 GNUNET_DISK_file_test ("hostlists_learn_peer.file")) 578 GNUNET_DISK_file_test ("hostlists_learn_peer.file"))
579 { 579 {
580 if (0 == UNLINK ("hostlists_learn_peer.file")) 580 if (0 == unlink ("hostlists_learn_peer.file"))
581 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 581 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
582 "Hostlist file hostlists_learn_peer.file was removed\n"); 582 "Hostlist file hostlists_learn_peer.file was removed\n");
583 } 583 }
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
index 28b2db0de..6aaa7ae2e 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
@@ -237,7 +237,7 @@ main (int argcx, char *argvx[])
237 &ok); 237 &ok);
238 if (0 == ok) 238 if (0 == ok)
239 { 239 {
240 FPRINTF (stderr, "%s", "."); 240 fprintf (stderr, "%s", ".");
241 /* now do it again */ 241 /* now do it again */
242 ok = 1; 242 ok = 1;
243 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 243 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
@@ -247,7 +247,7 @@ main (int argcx, char *argvx[])
247 options, 247 options,
248 &run, 248 &run,
249 &ok); 249 &ok);
250 FPRINTF (stderr, "%s", ".\n"); 250 fprintf (stderr, "%s", ".\n");
251 } 251 }
252 GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer1.conf", 252 GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer1.conf",
253 "GNUNET_TEST_HOME"); 253 "GNUNET_TEST_HOME");