aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-09-06 01:55:53 -0500
committerRob Landley <rob@landley.net>2013-09-06 01:55:53 -0500
commitb6dd79b93db4c6ff0ef21d4ca11610e18533173f (patch)
tree60cd71a6c64d335f1ebdd28f7f27fd4e12d03581
parent21d4d71c39fa7c4b72d0190212b18a30a36ade22 (diff)
downloadtoybox-b6dd79b93db4c6ff0ef21d4ca11610e18533173f.tar.gz
Missing typecast in recent rm fix. Oops.
-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;
}