diff options
author | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
commit | 6e599264ad13e8fc105493d74d7c11d46f8739ed (patch) | |
tree | 169bef1ecbade5a659831fb169f3ae6943af127f /src/core | |
parent | 4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff) | |
download | gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip |
first step to remove plibc
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-core.c | 8 | ||||
-rw-r--r-- | src/core/test_core_api_reliability.c | 4 | ||||
-rw-r--r-- | src/core/test_core_api_start_only.c | 2 | ||||
-rw-r--r-- | src/core/test_core_quota_compliance.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c index 674da705a..aeb3ba61f 100644 --- a/src/core/gnunet-core.c +++ b/src/core/gnunet-core.c | |||
@@ -108,7 +108,7 @@ monitor_cb (void *cls, | |||
108 | case GNUNET_CORE_KX_ITERATION_FINISHED: | 108 | case GNUNET_CORE_KX_ITERATION_FINISHED: |
109 | return; | 109 | return; |
110 | case GNUNET_CORE_KX_CORE_DISCONNECT: | 110 | case GNUNET_CORE_KX_CORE_DISCONNECT: |
111 | FPRINTF (stderr, | 111 | fprintf (stderr, |
112 | "%s\n", | 112 | "%s\n", |
113 | _ ("Connection to CORE service lost (reconnecting)")); | 113 | _ ("Connection to CORE service lost (reconnecting)")); |
114 | return; | 114 | return; |
@@ -117,7 +117,7 @@ monitor_cb (void *cls, | |||
117 | break; | 117 | break; |
118 | } | 118 | } |
119 | now_str = GNUNET_STRINGS_absolute_time_to_string (now); | 119 | now_str = GNUNET_STRINGS_absolute_time_to_string (now); |
120 | FPRINTF (stdout, | 120 | fprintf (stdout, |
121 | _ ("%24s: %-30s %4s (timeout in %6s)\n"), | 121 | _ ("%24s: %-30s %4s (timeout in %6s)\n"), |
122 | now_str, | 122 | now_str, |
123 | state_str, | 123 | state_str, |
@@ -146,13 +146,13 @@ run (void *cls, | |||
146 | (void) cfgfile; | 146 | (void) cfgfile; |
147 | if (NULL != args[0]) | 147 | if (NULL != args[0]) |
148 | { | 148 | { |
149 | FPRINTF (stderr, _ ("Invalid command line argument `%s'\n"), args[0]); | 149 | fprintf (stderr, _ ("Invalid command line argument `%s'\n"), args[0]); |
150 | return; | 150 | return; |
151 | } | 151 | } |
152 | mh = GNUNET_CORE_monitor_start (cfg, &monitor_cb, NULL); | 152 | mh = GNUNET_CORE_monitor_start (cfg, &monitor_cb, NULL); |
153 | if (NULL == mh) | 153 | if (NULL == mh) |
154 | { | 154 | { |
155 | FPRINTF (stderr, "%s", _ ("Failed to connect to CORE service!\n")); | 155 | fprintf (stderr, "%s", _ ("Failed to connect to CORE service!\n")); |
156 | return; | 156 | return; |
157 | } | 157 | } |
158 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); | 158 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); |
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index a2f7c0cf0..7bd4bfea0 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -147,7 +147,7 @@ do_shutdown (void *cls) | |||
147 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; | 147 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; |
148 | if (0 == delta) | 148 | if (0 == delta) |
149 | delta = 1; | 149 | delta = 1; |
150 | FPRINTF (stderr, | 150 | fprintf (stderr, |
151 | "\nThroughput was %llu kb/s\n", | 151 | "\nThroughput was %llu kb/s\n", |
152 | total_bytes * 1000000LL / 1024 / delta); | 152 | total_bytes * 1000000LL / 1024 / delta); |
153 | GAUGER ("CORE", | 153 | GAUGER ("CORE", |
@@ -301,7 +301,7 @@ handle_test (void *cls, | |||
301 | (unsigned int) ntohs (hdr->header.size)); | 301 | (unsigned int) ntohs (hdr->header.size)); |
302 | n++; | 302 | n++; |
303 | if (0 == (n % (TOTAL_MSGS / 100))) | 303 | if (0 == (n % (TOTAL_MSGS / 100))) |
304 | FPRINTF (stderr, | 304 | fprintf (stderr, |
305 | "%s", | 305 | "%s", |
306 | "."); | 306 | "."); |
307 | if (n == TOTAL_MSGS) | 307 | if (n == TOTAL_MSGS) |
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c index 03edffe8e..92574e3d4 100644 --- a/src/core/test_core_api_start_only.c +++ b/src/core/test_core_api_start_only.c | |||
@@ -135,7 +135,7 @@ setup_peer (struct PeerContext *p, | |||
135 | static void | 135 | static void |
136 | timeout_task (void *cls) | 136 | timeout_task (void *cls) |
137 | { | 137 | { |
138 | FPRINTF (stderr, | 138 | fprintf (stderr, |
139 | "%s", | 139 | "%s", |
140 | "Timeout.\n"); | 140 | "Timeout.\n"); |
141 | if (NULL != p1.ch) | 141 | if (NULL != p1.ch) |
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index c661ff3e5..908d90ac3 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -225,7 +225,7 @@ measurement_stop (void *cls) | |||
225 | enum GNUNET_ErrorType kind = GNUNET_ERROR_TYPE_DEBUG; | 225 | enum GNUNET_ErrorType kind = GNUNET_ERROR_TYPE_DEBUG; |
226 | 226 | ||
227 | measure_task = NULL; | 227 | measure_task = NULL; |
228 | FPRINTF (stdout, "%s", "\n"); | 228 | fprintf (stdout, "%s", "\n"); |
229 | running = GNUNET_NO; | 229 | running = GNUNET_NO; |
230 | 230 | ||
231 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; | 231 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; |
@@ -451,7 +451,7 @@ handle_test (void *cls, | |||
451 | ntohl (hdr->num)); | 451 | ntohl (hdr->num)); |
452 | n++; | 452 | n++; |
453 | if (0 == (n % 10)) | 453 | if (0 == (n % 10)) |
454 | FPRINTF (stderr, "%s", "."); | 454 | fprintf (stderr, "%s", "."); |
455 | 455 | ||
456 | if (GNUNET_YES == running) | 456 | if (GNUNET_YES == running) |
457 | do_transmit (NULL); | 457 | do_transmit (NULL); |