diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-22 01:48:07 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-22 01:48:07 +0000 |
commit | 2230e04b24d58710b30d25f032c1996a143ba261 (patch) | |
tree | b8cb8d939032c0806d62161b01e5836cb808dc3f /mtab.c | |
parent | 3c7e7e11b41d4a421bcf42fd1bf72a537e051d4a (diff) | |
download | busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.gz busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.bz2 busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.zip |
Use busybox error handling functions wherever possible.
git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'mtab.c')
-rw-r--r-- | mtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
61 | void write_mtab(char *blockDevice, char *directory, | 61 | void 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) { |