Ignore:
Timestamp:
Oct 21, 1999, 4:58:54 PM (26 years ago)
Author:
phaller
Message:

Fix: compiler + library + stack issues fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/async.cpp

    r1384 r1393  
    1 /* $Id: async.cpp,v 1.5 1999-10-20 20:10:55 phaller Exp $ */
     1/* $Id: async.cpp,v 1.6 1999-10-21 14:58:53 phaller Exp $ */
    22
    33/*
     
    3232#include <sys/ioctl.h>
    3333#include <sys/select.h>
    34 #include <unistd.h>
    3534
    3635#include <wsock32const.h>
     
    4948ODINDEBUGCHANNEL(WSOCK32-ASYNC)
    5049
     50
     51// prototype of the OS/2 select!
     52int _System os2_select(int* socket,
     53                       int fd_read,
     54                       int fd_write,
     55                       int fd_exception,
     56                       long timeout);
    5157
    5258
     
    610616
    611617  // call API
    612   pHostent = gethostbyaddr((const char*)pRequest->ul1,
     618  pHostent = gethostbyaddr((char*)pRequest->ul1,
    613619                           (int)        pRequest->ul2,
    614620                           (int)        pRequest->ul3);
     
    663669
    664670  // call API
    665   pHostent = gethostbyname((const char*)pRequest->ul1);
     671  pHostent = gethostbyname((char*)pRequest->ul1);
    666672  if (pHostent == NULL) // error ?
    667673  {
     
    714720
    715721  // call API
    716   pProtoent = getprotobyname((const char*)pRequest->ul1);
     722  pProtoent = getprotobyname((char*)pRequest->ul1);
    717723  if (pProtoent == NULL) // error ?
    718724  {
     
    765771
    766772  // call API
    767   pProtoent = getprotobyname((const char*)pRequest->ul1);
     773  pProtoent = getprotobyname(( char*)pRequest->ul1);
    768774  if (pProtoent == NULL) // error ?
    769775  {
     
    816822
    817823  // call API
    818   pServent = getservbyname((const char*)pRequest->ul1,
    819                            (const char*)pRequest->ul2);
     824  pServent = getservbyname((char*)pRequest->ul1,
     825                           (char*)pRequest->ul2);
    820826  if (pServent == NULL) // error ?
    821827  {
     
    869875  // call API
    870876  pServent = getservbyport((int        )pRequest->ul1,
    871                            (const char*)pRequest->ul2);
     877                           (char*)pRequest->ul2);
    872878  if (pServent == NULL) // error ?
    873879  {
     
    957963
    958964      // readiness for reading bytes ?
    959       irc = ioctl(sockWin, FIONREAD, &iUnknown, sizeof(iUnknown));
     965      irc = ioctl(sockWin, FIONREAD, (char *)&iUnknown, sizeof(iUnknown));
    960966      if ( (irc == 0) && (iUnknown > 0))
    961967         usResult |= FD_READ;
Note: See TracChangeset for help on using the changeset viewer.