X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/46cfeac8e5e6263f64f03028b98e27c0b09575f9..973612f5e86c9eaabc812a47d81c5cb14f672249:/sftp.c diff --git a/sftp.c b/sftp.c index 4d9810fc..a30b2428 100644 --- a/sftp.c +++ b/sftp.c @@ -13,18 +13,6 @@ #include "tree234.h" #include "sftp.h" -#define GET_32BIT(cp) \ - (((unsigned long)(unsigned char)(cp)[0] << 24) | \ - ((unsigned long)(unsigned char)(cp)[1] << 16) | \ - ((unsigned long)(unsigned char)(cp)[2] << 8) | \ - ((unsigned long)(unsigned char)(cp)[3])) - -#define PUT_32BIT(cp, value) { \ - (cp)[0] = (unsigned char)((value) >> 24); \ - (cp)[1] = (unsigned char)((value) >> 16); \ - (cp)[2] = (unsigned char)((value) >> 8); \ - (cp)[3] = (unsigned char)(value); } - struct sftp_packet { char *data; unsigned length, maxlen; @@ -349,7 +337,7 @@ static struct sftp_request *sftp_alloc_request(void) void sftp_cleanup_request(void) { - if (sftp_requests == NULL) { + if (sftp_requests != NULL) { freetree234(sftp_requests); sftp_requests = NULL; }