summaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/plist.c2
-rw-r--r--src/plist.h2
2 files changed, 2 insertions, 2 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;
diff --git a/src/plist.h b/src/plist.h
index 7bf62a8..95d2a3e 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -65,7 +65,7 @@ struct plist_data_s
typedef struct plist_data_s *plist_data_t;
plist_t plist_new_node(plist_data_t data);
-plist_data_t plist_get_data(const plist_t node);
+plist_data_t plist_get_data(plist_t node);
plist_data_t plist_new_plist_data(void);
void plist_free_data(plist_data_t data);
int plist_data_compare(const void *a, const void *b);