summaryrefslogtreecommitdiff
path: root/mtab.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-22 01:48:07 +0000
committerMatt Kraai <kraai@debian.org>2000-12-22 01:48:07 +0000
commita9819b290848e0a760f3805d5937fa050235d707 (patch)
treeb8cb8d939032c0806d62161b01e5836cb808dc3f /mtab.c
parente9f07fb6e83b75a50760599a5d31f494841eddf7 (diff)
downloadbusybox-w32-a9819b290848e0a760f3805d5937fa050235d707.tar.gz
busybox-w32-a9819b290848e0a760f3805d5937fa050235d707.tar.bz2
busybox-w32-a9819b290848e0a760f3805d5937fa050235d707.zip
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)
27 /* Bummer. fall back on trying the /proc filesystem */ 27 /* Bummer. fall back on trying the /proc filesystem */
28 && (mountTable = setmntent("/proc/mounts", "r")) == 0) { 28 && (mountTable = setmntent("/proc/mounts", "r")) == 0) {
29#endif 29#endif
30 perror(mtab_file); 30 perror_msg("%s", mtab_file);
31 return; 31 return;
32 } 32 }
33 33
@@ -55,7 +55,7 @@ void erase_mtab(const char *name)
55 } 55 }
56 endmntent(mountTable); 56 endmntent(mountTable);
57 } else if (errno != EROFS) 57 } else if (errno != EROFS)
58 perror(mtab_file); 58 perror_msg("%s", mtab_file);
59} 59}
60 60
61void write_mtab(char *blockDevice, char *directory, 61void write_mtab(char *blockDevice, char *directory,
@@ -65,7 +65,7 @@ void write_mtab(char *blockDevice, char *directory,
65 struct mntent m; 65 struct mntent m;
66 66
67 if (mountTable == 0) { 67 if (mountTable == 0) {
68 perror(mtab_file); 68 perror_msg("%s", mtab_file);
69 return; 69 return;
70 } 70 }
71 if (mountTable) { 71 if (mountTable) {