1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix compiler warnings

[originally from svn r1469]
This commit is contained in:
Simon Tatham 2001-12-11 18:47:35 +00:00
parent 46f2897cf6
commit 5f2c53790c
3 changed files with 2 additions and 6 deletions

View File

@ -355,8 +355,6 @@ static unsigned char *dss_private_blob(void *key, int *len)
int xlen, bloblen; int xlen, bloblen;
int i; int i;
unsigned char *blob, *p; unsigned char *blob, *p;
SHA_State s;
unsigned char digest[20];
xlen = (bignum_bitcount(dss->x) + 8) / 8; xlen = (bignum_bitcount(dss->x) + 8) / 8;

View File

@ -3803,13 +3803,11 @@ void write_clip(wchar_t * data, int len, int must_deselect)
len * sizeof(wchar_t)); len * sizeof(wchar_t));
clipdata2 = GlobalAlloc(GMEM_DDESHARE | GMEM_MOVEABLE, len2); clipdata2 = GlobalAlloc(GMEM_DDESHARE | GMEM_MOVEABLE, len2);
if (!clipdata || !clipdata2 || !clipdata3) { if (!clipdata || !clipdata2) {
if (clipdata) if (clipdata)
GlobalFree(clipdata); GlobalFree(clipdata);
if (clipdata2) if (clipdata2)
GlobalFree(clipdata2); GlobalFree(clipdata2);
if (clipdata3)
GlobalFree(clipdata3);
return; return;
} }
if (!(lock = GlobalLock(clipdata))) if (!(lock = GlobalLock(clipdata)))

View File

@ -969,7 +969,7 @@ int select_result(WPARAM wParam, LPARAM lParam)
memset(&isa, 0, sizeof(struct sockaddr_in)); memset(&isa, 0, sizeof(struct sockaddr_in));
err = 0; err = 0;
t = accept(s->s,&isa,&addrlen); t = accept(s->s,(struct sockaddr *)&isa,&addrlen);
if (t == INVALID_SOCKET) if (t == INVALID_SOCKET)
{ {
err = WSAGetLastError(); err = WSAGetLastError();