summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-21 19:52:28 -0800
committerGravatar Nikias Bassen2021-06-22 01:10:49 +0200
commit0efe610c1d0bfd6bded30bacd47809544db84882 (patch)
tree17587cc9965095c130d9f34776c50a1142d8648a /src/plist.c
parent787a4497f1e7fa9a771a2f78b811f7835c33f68f (diff)
downloadlibplist-0efe610c1d0bfd6bded30bacd47809544db84882.tar.gz
libplist-0efe610c1d0bfd6bded30bacd47809544db84882.tar.bz2
[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 <rosenp@gmail.com>
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
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;