fix typos in comments and remove leftover debug line

This commit is contained in:
Richard Frith-Macdonald 2021-02-15 19:58:30 +00:00
parent b45feeb8d7
commit a93eab8549

View file

@ -1936,7 +1936,6 @@ retrieve_callback(gnutls_session_t session,
{
int result = gnutls_record_recv(session, buf, len);
NSLog(@"TLS session read %d", result);
if (result < 0)
{
NSString *p;
@ -1978,7 +1977,7 @@ retrieve_callback(gnutls_session_t session,
result = -1;
#if defined(_WIN32)
/* Windows specific code expects to use winsock functions for error
* codes rather than looking at errno, so we must tyranslate a few.
* codes rather than looking at errno, so we must translate a few.
*/
if (EAGAIN == errno)
WSASetLastError(WSAEWOULDBLOCK);
@ -2027,7 +2026,7 @@ retrieve_callback(gnutls_session_t session,
result = -1;
#if defined(_WIN32)
/* Windows specific code expects to use winsock functions for error
* codes rather than looking at errno, so we must tyranslate a few.
* codes rather than looking at errno, so we must translate a few.
*/
if (EAGAIN == errno)
WSASetLastError(WSAEWOULDBLOCK);