[dev] [sbase][PATCH] diff: fix style

From: Mattias Andrée <maandree_AT_kth.se>
Date: Thu, 11 Feb 2016 14:02:38 +0100

Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
---
 install.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/install.c b/install.c
index 0a81101..ec96c05 100644
--- a/install.c
+++ b/install.c
_AT_@ -45,11 +45,9 @@ static void
 strip(const char *filename)
 {
 	pid_t pid = fork();
-	switch (pid)
-	{
+	switch (pid) {
 	case -1:
-		perror("fork");
-		exit(EXIT_FAILURE);
+		eprintf("fork:");
 	case 0:
 		execlp("strip", "strip", "--", filename, (char *)0);
 		eprintf("exec: strip:");
_AT_@ -217,7 +215,7 @@ main(int argc, char *argv[])
 	if (mflag) {
 		mode = parsemode(mflag, mode, 0);
 		if (mode < 0)
-			return EXIT_FAILURE;
+			return 1;
 	}
 
 	if (tflag) {
-- 
2.7.1
Received on Thu Feb 11 2016 - 14:02:38 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 11 2016 - 14:12:09 CET