[clang-tidy] Remove casts to the same type
Found with google-readability-casting
Signed-off-by: Rosen Penev <rosenp@gmail.com>
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 @@
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) {
diff --git a/src/xplist.c b/src/xplist.c
index 2f98983..263d88e 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -1141,7 +1141,7 @@
}
str++;
}
- data->intval = strtoull((char*)str, NULL, 0);
+ data->intval = strtoull(str, NULL, 0);
if (is_negative || (data->intval <= INT64_MAX)) {
uint64_t v = data->intval;
if (is_negative) {