[hackers] [ubase] Replace perror() with weprintf() || sin

From: <git_AT_suckless.org>
Date: Wed, 12 Mar 2014 15:23:31 +0100

commit 38bda0c7833dcd3d0bb653dbbefa20acc3b3daf6
Author: sin <sin_AT_2f30.org>
Date: Wed Mar 12 16:20:35 2014 +0200

    Replace perror() with weprintf()

diff --git a/umount.c b/umount.c
index 9fcc9ba..514063d 100644
--- a/umount.c
+++ b/umount.c
_AT_@ -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;
                         }
                 }
_AT_@ -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;
                 }
         }
Received on Wed Mar 12 2014 - 15:23:31 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 12 2014 - 15:24:18 CET