From 2230e04b24d58710b30d25f032c1996a143ba261 Mon Sep 17 00:00:00 2001 From: kraai Date: Fri, 22 Dec 2000 01:48:07 +0000 Subject: Use busybox error handling functions wherever possible. git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- mtab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mtab.c') diff --git a/mtab.c b/mtab.c index 1f2083709..ab805e9c1 100644 --- a/mtab.c +++ b/mtab.c @@ -27,7 +27,7 @@ void erase_mtab(const char *name) /* Bummer. fall back on trying the /proc filesystem */ && (mountTable = setmntent("/proc/mounts", "r")) == 0) { #endif - perror(mtab_file); + perror_msg("%s", mtab_file); return; } @@ -55,7 +55,7 @@ void erase_mtab(const char *name) } endmntent(mountTable); } else if (errno != EROFS) - perror(mtab_file); + perror_msg("%s", mtab_file); } void write_mtab(char *blockDevice, char *directory, @@ -65,7 +65,7 @@ void write_mtab(char *blockDevice, char *directory, struct mntent m; if (mountTable == 0) { - perror(mtab_file); + perror_msg("%s", mtab_file); return; } if (mountTable) { -- cgit v1.2.3-55-g6feb