aboutsummaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-22 01:48:07 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-22 01:48:07 +0000
commit2230e04b24d58710b30d25f032c1996a143ba261 (patch)
treeb8cb8d939032c0806d62161b01e5836cb808dc3f /umount.c
parent3c7e7e11b41d4a421bcf42fd1bf72a537e051d4a (diff)
downloadbusybox-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 'umount.c')
-rw-r--r--umount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/umount.c b/umount.c
index e76e0521f..0867118c0 100644
--- a/umount.c
+++ b/umount.c
@@ -216,7 +216,7 @@ static int umount_all(int useMtab)
216 if (status != 0) { 216 if (status != 0) {
217 /* Don't bother retrying the umount on busy devices */ 217 /* Don't bother retrying the umount on busy devices */
218 if (errno == EBUSY) { 218 if (errno == EBUSY) {
219 perror(mountpt); 219 perror_msg("%s", mountpt);
220 continue; 220 continue;
221 } 221 }
222 status = do_umount(mountpt, useMtab); 222 status = do_umount(mountpt, useMtab);
@@ -280,7 +280,6 @@ extern int umount_main(int argc, char **argv)
280 } 280 }
281 if (do_umount(*argv, useMtab) == TRUE) 281 if (do_umount(*argv, useMtab) == TRUE)
282 return EXIT_SUCCESS; 282 return EXIT_SUCCESS;
283 perror("umount"); 283 perror_msg_and_die("%s", *argv);
284 return EXIT_FAILURE;
285} 284}
286 285