[hackers] [ubase] No need to have ':' in perror() || sin

From: <git_AT_suckless.org>
Date: Tue, 11 Mar 2014 20:47:14 +0100

commit f7a4849ded9292fce96bcd3afe7ff63c4834b763
Author: sin <sin_AT_2f30.org>
Date: Fri Mar 7 14:00:44 2014 +0000

    No need to have ':' in perror()
    
    It gets added automatically.

diff --git a/umount.c b/umount.c
index e98d4b3..9fcc9ba 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:");
+ perror("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:");
+ perror("umount2");
                         ret = EXIT_FAILURE;
                 }
         }
Received on Tue Mar 11 2014 - 20:47:14 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 11 2014 - 20:48:16 CET