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:
parent
46f2897cf6
commit
5f2c53790c
2
sshdss.c
2
sshdss.c
@ -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;
|
||||||
|
|
||||||
|
4
window.c
4
window.c
@ -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)))
|
||||||
|
2
winnet.c
2
winnet.c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user