mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-20 18:57:06 +02:00
Fix compile error on non-MSVC systems.
git-svn-id: file:///home/jj/hercules.svn/trunk@5425 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
@@ -320,7 +320,7 @@ void socket_device_connection_handler (bind_struct* bs)
|
||||
if (dev->busy || IOPENDING(dev)
|
||||
|| (dev->scsw.flag3 & SCSW3_SC_PEND))
|
||||
{
|
||||
closesocket( csock );
|
||||
close_socket( csock );
|
||||
logmsg (_("HHCSD015E Client %s (%s) connection to device %4.4X "
|
||||
"(%s) rejected: device busy or interrupt pending\n"),
|
||||
clientname, clientip, dev->devnum, bs->spec);
|
||||
@@ -332,7 +332,7 @@ void socket_device_connection_handler (bind_struct* bs)
|
||||
|
||||
if (dev->fd != -1)
|
||||
{
|
||||
closesocket( csock );
|
||||
close_socket( csock );
|
||||
logmsg (_("HHCSD016E Client %s (%s) connection to device %4.4X "
|
||||
"(%s) rejected: client %s (%s) still connected\n"),
|
||||
clientname, clientip, dev->devnum, bs->spec,
|
||||
@@ -356,7 +356,7 @@ void socket_device_connection_handler (bind_struct* bs)
|
||||
if (bs->fn && !bs->fn( bs->arg ))
|
||||
{
|
||||
/* Callback says it can't accept it */
|
||||
closesocket( dev->fd );
|
||||
close_socket( dev->fd );
|
||||
dev->fd = -1;
|
||||
logmsg (_("HHCSD026E Client %s (%s) connection to device %4.4X "
|
||||
"(%s) rejected: by onconnect callback\n"),
|
||||
|
||||
Reference in New Issue
Block a user