From ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 26 Oct 2006 23:25:17 +0000 Subject: rename functions to more understandable names --- loginutils/deluser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loginutils/deluser.c') diff --git a/loginutils/deluser.c b/loginutils/deluser.c index bbbd77dbd..795dae49f 100644 --- a/loginutils/deluser.c +++ b/loginutils/deluser.c @@ -54,7 +54,7 @@ static void del_line_matching(const char *login, const char *filename) struct stat statbuf; - if ((passwd = bb_wfopen(filename, "r"))) { + if ((passwd = fopen_or_warn(filename, "r"))) { // Remove pointless const. xstat((char *)filename, &statbuf); buffer = (char *) xmalloc(statbuf.st_size * sizeof(char)); @@ -64,7 +64,7 @@ static void del_line_matching(const char *login, const char *filename) b = boundary(buffer, login); if (b.stop != 0) { /* write the file w/o the user */ - if ((passwd = bb_wfopen(filename, "w"))) { + if ((passwd = fopen_or_warn(filename, "w"))) { fwrite(buffer, (b.start - 1), sizeof(char), passwd); fwrite(&buffer[b.stop], (statbuf.st_size - b.stop), sizeof(char), passwd); fclose(passwd); -- cgit v1.2.3