summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2015-12-31 17:34:17 +0100
committerFrancois Perrad <francois.perrad@gadz.org>2015-12-31 17:34:17 +0100
commita30bea761d26682bdf2e94842e00cdf22a7f7e01 (patch)
tree305f6ef1167cb085179aeebd87ffb2f4fbdabdf2
parentac3905a6fe0e507e0c1b3f06669aae071f626fe9 (diff)
downloaddropbear-a30bea761d26682bdf2e94842e00cdf22a7f7e01.tar.gz
add the idiomatic do/while(0) in the macro SCREWUP
-rw-r--r--scp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 7e44f54..5690330 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);