aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/deluser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index 1b9bc4439..d93a550fa 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -60,7 +60,8 @@ static void del_line_matching(const char *login, const char *filename)
if ((passwd = bb_wfopen(filename, "r"))) {
- xstat(filename, &statbuf);
+ // Remove pointless const.
+ xstat((char *)filename, &statbuf);
buffer = (char *) xmalloc(statbuf.st_size * sizeof(char));
fread(buffer, statbuf.st_size, sizeof(char), passwd);
fclose(passwd);