summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-06-25 17:40:24 +0200
committerDave Davenport <qball@gmpclient.org>2016-06-25 17:40:24 +0200
commit40f95ae81ff49cce2d4217020712b6a90bc26c73 (patch)
treeb2d900c8696024a5d6c564117ec76fe8075024c9 /source/dialogs
parentce645d78b39f20a5d30cf79d0d739d242fd964de (diff)
Make bit functions static
Diffstat (limited to 'source/dialogs')
-rw-r--r--source/dialogs/dmenu.c4
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];