From b6dd79b93db4c6ff0ef21d4ca11610e18533173f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 6 Sep 2013 01:55:53 -0500 Subject: Missing typecast in recent rm fix. Oops. --- toys/posix/rm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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; } -- cgit v1.2.3