Fix shadow compiler warning in sample code.
Этот коммит содержится в:
родитель
a1ad0deb32
Коммит
cfe5f83cf8
8
sample.c
8
sample.c
@ -288,7 +288,7 @@ void do_sftp(SSH_SESSION *session){
|
|||||||
int len=1;
|
int len=1;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
char data[8000]={0};
|
char data[8000]={0};
|
||||||
char *link;
|
char *lnk;
|
||||||
|
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
|
|
||||||
@ -318,12 +318,12 @@ void do_sftp(SSH_SESSION *session){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
link = sftp_readlink(sftp_session, "/tmp/sftp_symlink_test");
|
lnk = sftp_readlink(sftp_session, "/tmp/sftp_symlink_test");
|
||||||
if (link == NULL) {
|
if (lnk == NULL) {
|
||||||
fprintf(stderr, "Could not read link (%s)\n", ssh_get_error(session));
|
fprintf(stderr, "Could not read link (%s)\n", ssh_get_error(session));
|
||||||
return;
|
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");
|
sftp_unlink(sftp_session, "/tmp/sftp_symlink_test");
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user