eiwd

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

commit a2926bd3ed3a726c37939560dfbd177d1a97b985
parent 3621e998c91921ab65579a56f902f65970fd2086
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue,  9 Mar 2021 12:55:49 -0600

watchlist: Remove '__' prefix from static functions

The '__' prefix is meant for private, semi-private,
inner implementation or otherwise special APIs that
are typically exposed in a header.  In the case of watchlist, these
functions were static and do not fit the above description.  Remove the
__ prefix accordingly.

Diffstat:
Msrc/watchlist.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/watchlist.c b/src/watchlist.c @@ -36,7 +36,7 @@ static bool watchlist_item_match(const void *a, const void *b) return item->id == id; } -static void __watchlist_item_free(struct watchlist *watchlist, +static void watchlist_item_free(struct watchlist *watchlist, struct watchlist_item *item) { if (item->destroy) @@ -112,17 +112,17 @@ bool watchlist_remove(struct watchlist *watchlist, unsigned int id) if (!item) return false; - __watchlist_item_free(watchlist, item); + watchlist_item_free(watchlist, item); return true; } -static void __watchlist_clear(struct watchlist *watchlist) +static void watchlist_clear(struct watchlist *watchlist) { struct watchlist_item *item; while ((item = l_queue_pop_head(watchlist->items))) - __watchlist_item_free(watchlist, item); + watchlist_item_free(watchlist, item); } void watchlist_destroy(struct watchlist *watchlist) @@ -132,14 +132,14 @@ void watchlist_destroy(struct watchlist *watchlist) return; } - __watchlist_clear(watchlist); + watchlist_clear(watchlist); l_queue_destroy(watchlist->items, NULL); watchlist->items = NULL; } void watchlist_free(struct watchlist *watchlist) { - __watchlist_clear(watchlist); + watchlist_clear(watchlist); l_queue_destroy(watchlist->items, NULL); l_free(watchlist); } @@ -150,7 +150,7 @@ void __watchlist_prune_stale(struct watchlist *watchlist) while ((item = l_queue_remove_if(watchlist->items, watchlist_item_match, L_UINT_TO_PTR(0)))) - __watchlist_item_free(watchlist, item); + watchlist_item_free(watchlist, item); watchlist->stale_items = false; }