tree-wide: remove unnecessary __UNCONST usage.

This commit is contained in:
Érico Rolim
2020-12-05 20:15:48 -03:00
committed by Duncan Overbruck
parent 1e39f21f51
commit 47df729bcc
5 changed files with 4 additions and 12 deletions

View File

@ -51,7 +51,7 @@ set_extract_flags(uid_t euid)
static bool
match_preserved_file(struct xbps_handle *xhp, const char *entry)
{
char *file;
const char *file;
if (xhp->preserved_files == NULL)
return false;
@ -60,7 +60,7 @@ match_preserved_file(struct xbps_handle *xhp, const char *entry)
file = strchr(entry, '.') + 1;
assert(file);
} else {
file = __UNCONST(entry);
file = entry;
}
return xbps_match_string_in_array(xhp->preserved_files, file);