aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-03 17:36:11 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-03 17:36:11 +0100
commit2b98cbe5f7f6d468a0e250cb707a243f68cfe02f (patch)
treec1c9cd7886978d12f2a2108b5df55e205e493314
parent2862f9082ed4f16383a134e1112610d76ad91bf0 (diff)
bitvec: Fix return value in doc for bitvec_write_field()
-rw-r--r--src/bitvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitvec.c b/src/bitvec.c
index 0c263ad6..ef8621c5 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -497,7 +497,7 @@ uint64_t bitvec_read_field(struct bitvec *bv, unsigned int *read_index, unsigned
* \param[in] bv The boolean vector to work on
* \param[in,out] write_index Where writing supposed to start in the vector
* \param[in] len How many bits to write
- * \returns next write index or negative value on error
+ * \returns 0 on success, negative value on error
*/
int bitvec_write_field(struct bitvec *bv, unsigned int *write_index, uint64_t val, unsigned int len)
{