add the idiomatic do/while(0) in the macro SCREWUP

This commit is contained in:
Francois Perrad 2015-12-31 17:34:17 +01:00 committed by Matt Johnston
parent 3e20c442de
commit 0650182289

2
scp.c
View File

@ -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);