aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-06-16 22:26:08 +0200
committerlaforge <laforge@gnumonks.org>2019-06-17 15:14:41 +0000
commit76e8cbd8abfef84868fa5cd684dc800ed99c7dce (patch)
treeecabf10ef61ef797bd462279889c42bc20e4d901
parentdda07be0553ec609fb5e9e59cc301ffb65f8ebf1 (diff)
bitvec: correct comment in bitvec_alloc
The function allocates x bytes not bits for the vector. Change-Id: I60fbe9fe9acd11c5d3232207f1bb677e8a98625f
-rw-r--r--src/bitvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitvec.c b/src/bitvec.c
index 0f56e3e..dac0401 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -401,7 +401,7 @@ int bitvec_set_bytes(struct bitvec *bv, const uint8_t *bytes, unsigned int count
}
/*! Allocate a bit vector
- * \param[in] size Number of bits in the vector
+ * \param[in] size Number of bytes in the vector
* \param[in] ctx Context from which to allocate
* \return pointer to allocated vector; NULL in case of error */
struct bitvec *bitvec_alloc(unsigned int size, TALLOC_CTX *ctx)