diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-06-25 17:40:24 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-06-25 17:40:24 +0200 |
commit | 40f95ae81ff49cce2d4217020712b6a90bc26c73 (patch) | |
tree | b2d900c8696024a5d6c564117ec76fe8075024c9 /source/dialogs | |
parent | ce645d78b39f20a5d30cf79d0d739d242fd964de (diff) |
Make bit functions static
Diffstat (limited to 'source/dialogs')
-rw-r--r-- | source/dialogs/dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index 330531b4..2c1720e1 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -50,14 +50,14 @@ struct range_pair unsigned int stop; }; -inline unsigned int bitget ( uint32_t *array, unsigned int index ) +static inline unsigned int bitget ( uint32_t *array, unsigned int index ) { uint32_t bit = index % 32; uint32_t val = array[index / 32]; return ( val >> bit ) & 1; } -inline void bittoggle ( uint32_t *array, unsigned int index ) +static inline void bittoggle ( uint32_t *array, unsigned int index ) { uint32_t bit = index % 32; uint32_t *v = &array[index / 32]; |