From d684d5accbc9dae1139b395eb5a99b59815e6d59 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 3 May 2008 14:03:13 +0100 Subject: [PATCH] inetcomm: Remove unused variables. --- dlls/inetcomm/internettransport.c | 3 --- dlls/inetcomm/mimeole.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/dlls/inetcomm/internettransport.c b/dlls/inetcomm/internettransport.c index 2dab22ffc77..bba6aaba110 100644 --- a/dlls/inetcomm/internettransport.c +++ b/dlls/inetcomm/internettransport.c @@ -324,7 +324,6 @@ static LRESULT CALLBACK InternetTransport_WndProc(HWND hwnd, UINT uMsg, WPARAM w while (This->iCurrentBufferOffset < This->cbBuffer - 1) { - struct timeval tv; fd_set infd; if (recv(This->Socket, &This->pBuffer[This->iCurrentBufferOffset], 1, 0) <= 0) @@ -358,8 +357,6 @@ static LRESULT CALLBACK InternetTransport_WndProc(HWND hwnd, UINT uMsg, WPARAM w FD_ZERO(&infd); FD_SET(This->Socket, &infd); - tv.tv_sec = 0; - tv.tv_usec = 0; } if (This->iCurrentBufferOffset == This->cbBuffer - 1) return 0; diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c index 1e39f276356..ee03e92f951 100644 --- a/dlls/inetcomm/mimeole.c +++ b/dlls/inetcomm/mimeole.c @@ -1510,7 +1510,6 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc DWORD read; int boundary_len = strlen(boundary); char *buf, *nl_boundary, *ptr, *overlap; - DWORD total_read = 0; DWORD start = 0, overlap_no; offset_entry_t *cur_body = NULL; ULARGE_INTEGER cur; @@ -1533,7 +1532,6 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc hr = IStream_Read(stm, overlap, PARSER_BUF_SIZE, &read); if(FAILED(hr)) goto end; if(read == 0) break; - total_read += read; overlap[read] = '\0'; ptr = buf;