code-style: remove extra casts (#130)

Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com>
This commit is contained in:
javad
2021-10-24 01:27:22 +03:30
committed by NRK
parent 7b08b0a31b
commit bbebd45ce6
2 changed files with 5 additions and 5 deletions

2
main.c
View File

@ -929,7 +929,7 @@ int main(int argc, char *argv[])
for (i = 0; i < ARRLEN(cmd); i++) {
n = strlen(homedir) + strlen(dsuffix) + strlen(name[i]) + strlen(s) + 1;
cmd[i]->cmd = (char*) emalloc(n);
cmd[i]->cmd = emalloc(n);
snprintf(cmd[i]->cmd, n, "%s%s%s%s", homedir, dsuffix, s, name[i]);
if (access(cmd[i]->cmd, X_OK) != 0)
cmd[i]->err = errno;