summaryrefslogtreecommitdiffhomepage
path: root/scp.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2015-12-31 17:34:17 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:20 +0800
commit0650182289344e0d83b20c0cea1024a2306d2072 (patch)
treee7490db5425d4e626f0b43eee0378396e5c9c76f /scp.c
parent3e20c442de30c583b1728500c782641f88dedbfa (diff)
add the idiomatic do/while(0) in the macro SCREWUP
Diffstat (limited to 'scp.c')
-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);