aboutsummaryrefslogtreecommitdiff
path: root/src/util/bio.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-26 14:33:57 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-26 14:33:57 +0000
commitaffce940110bff113f6c204d5327b4c3df9b1749 (patch)
treea78f2bb0acad95f5388d516a3d2555ea9b26a185 /src/util/bio.c
parent1cf17ce5cbcb3bbf321dc4e605fcf28f8ac67325 (diff)
downloadgnunet-affce940110bff113f6c204d5327b4c3df9b1749.tar.gz
gnunet-affce940110bff113f6c204d5327b4c3df9b1749.zip
minor stylistic issues found while hunting #4619
Diffstat (limited to 'src/util/bio.c')
-rw-r--r--src/util/bio.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/util/bio.c b/src/util/bio.c
index c3642c648..62f4904f7 100644
--- a/src/util/bio.c
+++ b/src/util/bio.c
@@ -23,11 +23,18 @@
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25#include "platform.h" 25#include "platform.h"
26#include "gnunet_bio_lib.h" 26#include "gnunet_util_lib.h"
27#include "gnunet_disk_lib.h"
28 27
29#define LOG(kind,...) GNUNET_log_from (kind, "util",__VA_ARGS__) 28#define LOG(kind,...) GNUNET_log_from (kind, "util",__VA_ARGS__)
30 29
30#ifndef PATH_MAX
31/**
32 * Assumed maximum path length (for source file names).
33 */
34#define PATH_MAX 4096
35#endif
36
37
31/** 38/**
32 * Size for I/O buffers. 39 * Size for I/O buffers.
33 */ 40 */
@@ -205,7 +212,7 @@ GNUNET_BIO_read_fn (struct GNUNET_BIO_ReadHandle *h,
205 void *result, 212 void *result,
206 size_t len) 213 size_t len)
207{ 214{
208 char what[MAX_PATH + 1024]; 215 char what[PATH_MAX + 1024];
209 216
210 GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line); 217 GNUNET_snprintf (what, sizeof (what), "%s:%d", file, line);
211 return GNUNET_BIO_read (h, what, result, len); 218 return GNUNET_BIO_read (h, what, result, len);