summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2017-10-24 19:41:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2017-10-24 19:41:46 +0000
commite7e899e65b9f7ed361218bbfff41c1596ae8c59c (patch)
tree892136b3da40002d42dbfab652ebfff1cb4386f3 /usr.bin/ssh/misc.c
parente57d3fbec23c21926023511241e0ddabb2365f29 (diff)
Kill dead store and some spaces vs. tabs indent in parse_user_host_path().
Noticed by markus@
Diffstat (limited to 'usr.bin/ssh/misc.c')
-rw-r--r--usr.bin/ssh/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index 54efcfd5cd0..0ffae67f15e 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.115 2017/10/23 05:08:00 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.116 2017/10/24 19:41:45 millert Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -478,7 +478,7 @@ parse_user_host_path(const char *s, char **userp, char **hostp, char **pathp)
if (pathp != NULL)
*pathp = NULL;
- sdup = tmp = xstrdup(s);
+ sdup = xstrdup(s);
/* Check for remote syntax: [user@]host:[path] */
if ((tmp = colon(sdup)) == NULL)
@@ -510,11 +510,11 @@ parse_user_host_path(const char *s, char **userp, char **hostp, char **pathp)
if (hostp != NULL) {
*hostp = host;
host = NULL;
- }
+ }
if (pathp != NULL) {
*pathp = path;
path = NULL;
- }
+ }
ret = 0;
out:
free(sdup);