X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sftp.c;h=a30b24286b5fb3417c66fc0e632504ebeafb72f4;hb=df913d00360aea784521662ad42c11e3933bb6f8;hp=4d9810fc7dd02e95700cf1a1b9e315abb616ac47;hpb=893d187b81991a7b259ede864b7d18ae60c59589;p=PuTTY.git 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; }