From 0650182289344e0d83b20c0cea1024a2306d2072 Mon Sep 17 00:00:00 2001
From: Francois Perrad <francois.perrad@gadz.org>
Date: Thu, 31 Dec 2015 17:34:17 +0100
Subject: [PATCH] add the idiomatic do/while(0) in the macro SCREWUP

---
 scp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp.c b/scp.c
index 7e44f54e..5690330e 100644
--- a/scp.c
+++ b/scp.c
@@ -841,7 +841,7 @@ sink(int argc, char **argv)
 
 #define	atime	tv[0]
 #define	mtime	tv[1]
-#define	SCREWUP(str)	{ why = str; goto screwup; }
+#define	SCREWUP(str)	do { why = str; goto screwup; } while (0)
 
 	setimes = targisdir = 0;
 	mask = umask(0);
-- 
GitLab