aboutsummaryrefslogtreecommitdiff
path: root/src/util/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/bio.c')
-rw-r--r--src/util/bio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/bio.c b/src/util/bio.c
index 43a2abc89..d221d0a21 100644
--- a/src/util/bio.c
+++ b/src/util/bio.c
@@ -138,7 +138,7 @@ GNUNET_BIO_read_open_file (const char *fn)
138 * 138 *
139 * @param buffer the buffer to use as source 139 * @param buffer the buffer to use as source
140 * @param size the total size in bytes of the buffer 140 * @param size the total size in bytes of the buffer
141 * @return IO handle on sucess, NULL on error 141 * @return IO handle on success, NULL on error
142 */ 142 */
143struct GNUNET_BIO_ReadHandle * 143struct GNUNET_BIO_ReadHandle *
144GNUNET_BIO_read_open_buffer (void *buffer, size_t size) 144GNUNET_BIO_read_open_buffer (void *buffer, size_t size)
@@ -644,7 +644,7 @@ GNUNET_BIO_write_close (struct GNUNET_BIO_WriteHandle *h, char **emsg)
644 644
645/** 645/**
646 * Force a file-based buffered writer to flush its buffer. 646 * Force a file-based buffered writer to flush its buffer.
647 * If the handle does not use a file, this function returs #GNUNET_OK 647 * If the handle does not use a file, this function returns #GNUNET_OK
648 * without doing anything. 648 * without doing anything.
649 * 649 *
650 * @param h the IO handle 650 * @param h the IO handle
@@ -1011,7 +1011,7 @@ GNUNET_BIO_read_spec_object (const char *what,
1011 1011
1012 1012
1013/** 1013/**
1014 * Function used interally to read a string from within a read spec. 1014 * Function used internally to read a string from within a read spec.
1015 * 1015 *
1016 * @param cls ignored, always NULL 1016 * @param cls ignored, always NULL
1017 * @param h the IO handle to read from 1017 * @param h the IO handle to read from
@@ -1110,7 +1110,7 @@ GNUNET_BIO_read_spec_meta_data (const char *what,
1110 * @param what what is being read (for error message creation) 1110 * @param what what is being read (for error message creation)
1111 * @param target where to store the data 1111 * @param target where to store the data
1112 * @param target_size ignored 1112 * @param target_size ignored
1113 * @retun #GNUNET_OK on success, #GNUNET_SYSERR otherwise 1113 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
1114 */ 1114 */
1115static int 1115static int
1116read_spec_handler_int32 (void *cls, 1116read_spec_handler_int32 (void *cls,
@@ -1154,7 +1154,7 @@ GNUNET_BIO_read_spec_int32 (const char *what,
1154 * @param what what is being read (for error message creation) 1154 * @param what what is being read (for error message creation)
1155 * @param target where to store the data 1155 * @param target where to store the data
1156 * @param target_size ignored 1156 * @param target_size ignored
1157 * @retun #GNUNET_OK on success, #GNUNET_SYSERR otherwise 1157 * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
1158 */ 1158 */
1159static int 1159static int
1160read_spec_handler_int64 (void *cls, 1160read_spec_handler_int64 (void *cls,
@@ -1549,7 +1549,7 @@ GNUNET_BIO_write_spec_commit (struct GNUNET_BIO_WriteHandle *h,
1549 } 1549 }
1550 1550
1551 /* If it's a file-based handle, the flush makes sure that the data in the 1551 /* If it's a file-based handle, the flush makes sure that the data in the
1552 buffer is actualy written to the disk. */ 1552 buffer is actually written to the disk. */
1553 if (IO_FILE == h->type) 1553 if (IO_FILE == h->type)
1554 ret = GNUNET_BIO_flush (h); 1554 ret = GNUNET_BIO_flush (h);
1555 1555