[hackers] [sbase] Don't check remove() return value || sin

From: <git_AT_suckless.org>
Date: Fri, 14 Feb 2014 12:49:43 +0100

commit 7309302e25a05aaa69e1d65ac9ae70e82e32c1d9
Author: sin <sin_AT_2f30.org>
Date: Fri Feb 14 11:47:34 2014 +0000

    Don't check remove() return value

diff --git a/ln.c b/ln.c
index 7dba59b..12be44e 100644
--- a/ln.c
+++ b/ln.c
_AT_@ -42,10 +42,8 @@ ln(const char *s1, const char *s2)
         int (*flink)(const char *, const char *) = sflag ? symlink : link;
 
         if (fflag)
- if (remove(s2) == -1)
- eprintf("remove %s:", s2);
+ remove(s2);
         if(flink(s1, s2) == 0)
                 return 0;
         return -1;
 }
-
Received on Fri Feb 14 2014 - 12:49:43 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 14 2014 - 13:00:14 CET