summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-21 22:23:41 -0800
committerGravatar Nikias Bassen2021-06-22 01:33:39 +0200
commit1f6cb66777c0e33ce25dff5cd98f46102451f927 (patch)
treec4dfce719e092c3bc70fbe940bc2d4d5f2da80eb /src/plist.c
parentb086d0612740978c1942c1c3a078d4a0b8ffffef (diff)
downloadlibplist-1f6cb66777c0e33ce25dff5cd98f46102451f927.tar.gz
libplist-1f6cb66777c0e33ce25dff5cd98f46102451f927.tar.bz2
[clang-tidy] Remove casts to the same type
Found with google-readability-casting 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 862a54c..f03e125 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -395,7 +395,7 @@ static plist_t plist_copy_node(node_t *node)
break;
case PLIST_KEY:
case PLIST_STRING:
- newdata->strval = strdup((char *) data->strval);
+ newdata->strval = strdup(data->strval);
break;
case PLIST_ARRAY:
if (data->hashtable) {