aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-25 13:59:40 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-25 13:59:40 +0200
commitcfe5f83cf8cb59afc16479c06cab2d6310e6420d (patch)
tree9c12af46d354df9c10fdb524a3ceb573b6ae789e /sample.c
parenta1ad0deb3216f9e40d5940f5c12f94d6dbc9e546 (diff)
downloadlibssh-cfe5f83cf8cb59afc16479c06cab2d6310e6420d.tar.gz
libssh-cfe5f83cf8cb59afc16479c06cab2d6310e6420d.tar.xz
libssh-cfe5f83cf8cb59afc16479c06cab2d6310e6420d.zip
Fix shadow compiler warning in sample code.
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sample.c b/sample.c
index c40dee99..cc3df54f 100644
--- a/sample.c
+++ b/sample.c
@@ -288,7 +288,7 @@ void do_sftp(SSH_SESSION *session){
int len=1;
unsigned int i;
char data[8000]={0};
- char *link;
+ char *lnk;
unsigned int count;
@@ -318,12 +318,12 @@ void do_sftp(SSH_SESSION *session){
return;
}
- link = sftp_readlink(sftp_session, "/tmp/sftp_symlink_test");
- if (link == NULL) {
+ lnk = sftp_readlink(sftp_session, "/tmp/sftp_symlink_test");
+ if (lnk == NULL) {
fprintf(stderr, "Could not read link (%s)\n", ssh_get_error(session));
return;
}
- printf("readlink /tmp/sftp_symlink_test: %s\n", link);
+ printf("readlink /tmp/sftp_symlink_test: %s\n", lnk);
sftp_unlink(sftp_session, "/tmp/sftp_symlink_test");