Replace perror() with weprintf()

This commit is contained in:
sin 2014-03-12 16:20:35 +02:00
parent 6df1301594
commit 38bda0c783
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ main(int argc, char *argv[])
eprintf("setmntent %s:", "/etc/fstab");
while ((me = getmntent(fp))) {
if (umount2(me->mnt_dir, flags) < 0) {
perror("umount2");
weprintf("umount2:");
ret = EXIT_FAILURE;
}
}
@ -56,7 +56,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++) {
if (umount2(argv[i], flags) < 0) {
perror("umount2");
weprintf("umount2:");
ret = EXIT_FAILURE;
}
}