summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scp.c b/scp.c
index 2ca48dd57..1a83a298f 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
75 */ 75 */
76 76
77#include "includes.h" 77#include "includes.h"
78RCSID("$OpenBSD: scp.c,v 1.74 2001/06/16 08:57:35 markus Exp $"); 78RCSID("$OpenBSD: scp.c,v 1.75 2001/06/23 00:16:16 deraadt Exp $");
79 79
80#include "xmalloc.h" 80#include "xmalloc.h"
81#include "atomicio.h" 81#include "atomicio.h"
@@ -662,7 +662,7 @@ sink(argc, argv)
662 662
663#define atime tv[0] 663#define atime tv[0]
664#define mtime tv[1] 664#define mtime tv[1]
665#define SCREWUP(str) { why = str; goto screwup; } 665#define SCREWUP(str) do { why = str; goto screwup; } while (0)
666 666
667 setimes = targisdir = 0; 667 setimes = targisdir = 0;
668 mask = umask(0); 668 mask = umask(0);
@@ -1003,7 +1003,7 @@ okname(cp0)
1003 1003
1004 cp = cp0; 1004 cp = cp0;
1005 do { 1005 do {
1006 c = *cp; 1006 c = (int)*cp;
1007 if (c & 0200) 1007 if (c & 0200)
1008 goto bad; 1008 goto bad;
1009 if (!isalpha(c) && !isdigit(c) && 1009 if (!isalpha(c) && !isdigit(c) &&