summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-06-30 08:33:32 +1000
committerDamien Miller <djm@mindrot.org>2012-06-30 08:33:32 +1000
commitea8582931f40fcf49ed8ce94711a329c0b49dc7d (patch)
tree781068f60059c32574321b8f2eda4813fab91e26 /sftp.c
parent5f58a877680d1c2c1a1b11e8e2b38353ed728327 (diff)
- dtucker@cvs.openbsd.org 2012/06/22 14:36:33
[sftp.c] Remove unused variable leftover from tab-completion changes. From Steve.McClellan at radisys com, ok markus@
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sftp.c b/sftp.c
index 22cf31457..235c6ad04 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm Exp $ */ 1/* $OpenBSD: sftp.c,v 1.136 2012/06/22 14:36:33 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -783,7 +783,6 @@ static int
783do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path, 783do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
784 int lflag) 784 int lflag)
785{ 785{
786 Attrib *a = NULL;
787 char *fname, *lname; 786 char *fname, *lname;
788 glob_t g; 787 glob_t g;
789 int err; 788 int err;
@@ -829,7 +828,7 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
829 colspace = width / columns; 828 colspace = width / columns;
830 } 829 }
831 830
832 for (i = 0; g.gl_pathv[i] && !interrupted; i++, a = NULL) { 831 for (i = 0; g.gl_pathv[i] && !interrupted; i++) {
833 fname = path_strip(g.gl_pathv[i], strip_path); 832 fname = path_strip(g.gl_pathv[i], strip_path);
834 if (lflag & LS_LONG_VIEW) { 833 if (lflag & LS_LONG_VIEW) {
835 if (g.gl_statv[i] == NULL) { 834 if (g.gl_statv[i] == NULL) {