summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-20 11:07:14 +0100
committerThomas Haller <thaller@redhat.com>2021-01-20 11:07:23 +0100
commit3096d31155142396098d313cbd8f5f3fbe31e328 (patch)
tree3c582a61c1cdf3bfe9a2ca32917d22e5b2cdb0de
parent761a1452d9e8c86910c0a30a92c98dd45ed286a9 (diff)
parentefebd9dca4cd4c8ee90487e2c693a902caf21f5d (diff)
downloadNetworkManager-3096d31155142396098d313cbd8f5f3fbe31e328.tar.gz
shared/c-list: reimport
git subtree pull --prefix shared/c-list git@github.com:c-util/c-list.git master --squash
-rw-r--r--shared/c-list/src/c-list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/c-list/src/c-list.h b/shared/c-list/src/c-list.h
index 3d44e33060..c92aa6f3ad 100644
--- a/shared/c-list/src/c-list.h
+++ b/shared/c-list/src/c-list.h
@@ -87,10 +87,12 @@ static inline _Bool c_list_is_linked(const CList *what) {
* c_list_is_empty() - check whether a list is empty
* @list: list to check, or NULL
*
+ * This is the same as !c_list_is_linked().
+ *
* Return: True if @list is empty, false if not.
*/
static inline _Bool c_list_is_empty(const CList *list) {
- return !list || !c_list_is_linked(list);
+ return !c_list_is_linked(list);
}
/**