sftp: Reformat sftp_readlink()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-08-31 18:50:00 +02:00
parent e0449ba21f
commit bb4bdec184

View File

@@ -2612,7 +2612,8 @@ int sftp_symlink(sftp_session sftp, const char *target, const char *dest) {
return -1;
}
char *sftp_readlink(sftp_session sftp, const char *path) {
char *sftp_readlink(sftp_session sftp, const char *path)
{
sftp_status_message status = NULL;
sftp_message msg = NULL;
ssh_string path_s = NULL;
@@ -2623,8 +2624,10 @@ char *sftp_readlink(sftp_session sftp, const char *path) {
uint32_t id;
int rc;
if (sftp == NULL)
if (sftp == NULL) {
return NULL;
}
if (path == NULL) {
ssh_set_error_invalid(sftp);
return NULL;