From 0efe610c1d0bfd6bded30bacd47809544db84882 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 21 Dec 2020 19:52:28 -0800 Subject: [clang-tidy] Remove pointless const The const is actually misplaced. const plist_t evaluates to void *const instead of const void *. const qualification of the former makes no sense in function declarations. Found with misc-misplaced-const Signed-off-by: Rosen Penev --- src/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plist.c') diff --git a/src/plist.c b/src/plist.c index 4d327e0..4cb6206 100644 --- a/src/plist.c +++ b/src/plist.c @@ -195,7 +195,7 @@ plist_t plist_new_node(plist_data_t data) return (plist_t) node_create(NULL, data); } -plist_data_t plist_get_data(const plist_t node) +plist_data_t plist_get_data(plist_t node) { if (!node) return NULL; -- cgit v1.1-32-gdbae