aboutsummaryrefslogtreecommitdiff
path: root/src/util/bio.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-06 14:34:33 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-06 14:34:33 +0900
commitc83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce (patch)
treefc92dc33f0ed9190cee38c3d8bcdbc5a7f32c6dc /src/util/bio.c
parent69e6c0b893b0b642f969ac8a134d043a51e393a3 (diff)
downloadgnunet-c83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce.tar.gz
gnunet-c83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce.zip
-migrate meta data tests to FS. Fix BIO error
Diffstat (limited to 'src/util/bio.c')
-rw-r--r--src/util/bio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/bio.c b/src/util/bio.c
index a19e4f3ba..70620aea7 100644
--- a/src/util/bio.c
+++ b/src/util/bio.c
@@ -182,6 +182,13 @@ GNUNET_BIO_read_close (struct GNUNET_BIO_ReadHandle *h, char **emsg)
182 return err; 182 return err;
183} 183}
184 184
185void
186GNUNET_BIO_read_set_error (struct GNUNET_BIO_ReadHandle *h, const char* emsg)
187{
188 GNUNET_assert (NULL == h->emsg);
189 h->emsg = GNUNET_strdup (emsg);
190}
191
185 192
186/** 193/**
187 * Function used internally to read the contents of a file into a buffer. 194 * Function used internally to read the contents of a file into a buffer.