# HG changeset patch # User reimar # Date 1190206450 0 # Node ID 97eaba07ef9d6459f1e30397f0c44b93adde50ab # Parent 32865ce92732aa99af8e6c61bbf48db4f464728c Fix a few typos diff -r 32865ce92732 -r 97eaba07ef9d stream/tcp.c --- a/stream/tcp.c Tue Sep 18 19:51:22 2007 +0000 +++ b/stream/tcp.c Wed Sep 19 12:54:10 2007 +0000 @@ -193,7 +193,7 @@ tv.tv_usec = 500000; FD_ZERO( &set ); FD_SET( socket_server_fd, &set ); - // When the connection will be made, we will have a writable fd + // When the connection will be made, we will have a writeable fd while((ret = select(socket_server_fd+1, NULL, &set, NULL, &tv)) == 0) { if( ret<0 ) mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_NW_SelectFailed); else if(ret > 0) break; @@ -201,7 +201,7 @@ if(count > 30) mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_NW_ConnTimeout); else - mp_msg(MSGT_NETWORK,MSGL_V,"Connection interuppted by user\n"); + mp_msg(MSGT_NETWORK,MSGL_V,"Connection interrupted by user\n"); return TCP_ERROR_TIMEOUT; } count++; @@ -218,7 +218,7 @@ val = 0; ioctlsocket( socket_server_fd, FIONBIO, &val ); #endif - // Check if there were any error + // Check if there were any errors err_len = sizeof(int); ret = getsockopt(socket_server_fd,SOL_SOCKET,SO_ERROR,&err,&err_len); if(ret < 0) { diff -r 32865ce92732 -r 97eaba07ef9d stream/udp.c --- a/stream/udp.c Tue Sep 18 19:51:22 2007 +0000 +++ b/stream/udp.c Wed Sep 19 12:54:10 2007 +0000 @@ -126,7 +126,7 @@ if (!hp) { mp_msg (MSGT_NETWORK, MSGL_ERR, - "Counldn't resolve name: %s\n", url->hostname); + "Could not resolve name: %s\n", url->hostname); closesocket (socket_server_fd); return -1; }