ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 38bda0c7833dcd3d0bb653dbbefa20acc3b3daf6
parent 6df1301594433963840b29d6ae42fb6de4b056c8
Author: sin <sin@2f30.org>
Date:   Wed Mar 12 16:20:35 +0200

Replace perror() with weprintf()

Diffstat:
umount.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/umount.c b/umount.c @@ -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; } }