changeset 1277:07ee7736397e

add the idiomatic do/while(0) in the macro SCREWUP
author Francois Perrad <francois.perrad@gadz.org>
date Thu, 31 Dec 2015 17:34:17 +0100
parents 9169e4e7cbee
children 0c47d97aa9d5
files scp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scp.c	Fri Jan 01 16:30:31 2016 +0100
+++ b/scp.c	Thu Dec 31 17:34:17 2015 +0100
@@ -841,7 +841,7 @@
 
 #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);