eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 76b73a1cf58f1e86a018da7f79be984cab5e4a5c
parent dd2daa496113d27e82571fb890719d284a44384d
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 21 Aug 2019 15:21:43 -0700

util: add util_set_bit

Sets a single bit in a uint8_t * bit field

Diffstat:
Msrc/util.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/util.h b/src/util.h @@ -65,4 +65,9 @@ static inline bool util_mem_is_zero(const uint8_t *field, size_t size) return true; } +static inline void util_set_bit(uint8_t *field, unsigned int bit) +{ + field[bit / 8] = 1 << (bit % 8); +} + #endif /* __UTIL_H */