aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/rm.c')
-rw-r--r--toys/posix/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/rm.c b/toys/posix/rm.c
index d9ad60d4..19579db3 100644
--- a/toys/posix/rm.c
+++ b/toys/posix/rm.c
@@ -62,7 +62,7 @@ static int do_rm(struct dirtree *try)
skip:
if (unlinkat(fd, try->name, using)) {
- if (!dir || try->symlink != 2) perror_msg("%s", try->name);
+ if (!dir || try->symlink != (char *)2) perror_msg("%s", try->name);
nodelete:
if (try->parent) try->parent->symlink = (char *)2;
}