Mercurial > dropbear
diff scp.c @ 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 | bdc28287f077 |
children | 750ec4ec4cbe |
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);