Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mtab.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-22 04:48:07 +0300
committerMatt Kraai <kraai@debian.org>2000-12-22 04:48:07 +0300
commita9819b290848e0a760f3805d5937fa050235d707 (patch)
treeb8cb8d939032c0806d62161b01e5836cb808dc3f /mtab.c
parente9f07fb6e83b75a50760599a5d31f494841eddf7 (diff)
Use busybox error handling functions wherever possible.
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c6
1 files changed, 3 insertions, 3 deletions
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) {