Changeset 1393 for trunk/src/wsock32/async.cpp
- Timestamp:
- Oct 21, 1999, 4:58:54 PM (26 years ago)
- 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:55phaller Exp $ */1 /* $Id: async.cpp,v 1.6 1999-10-21 14:58:53 phaller Exp $ */ 2 2 3 3 /* … … 32 32 #include <sys/ioctl.h> 33 33 #include <sys/select.h> 34 #include <unistd.h>35 34 36 35 #include <wsock32const.h> … … 49 48 ODINDEBUGCHANNEL(WSOCK32-ASYNC) 50 49 50 51 // prototype of the OS/2 select! 52 int _System os2_select(int* socket, 53 int fd_read, 54 int fd_write, 55 int fd_exception, 56 long timeout); 51 57 52 58 … … 610 616 611 617 // call API 612 pHostent = gethostbyaddr((c onst char*)pRequest->ul1,618 pHostent = gethostbyaddr((char*)pRequest->ul1, 613 619 (int) pRequest->ul2, 614 620 (int) pRequest->ul3); … … 663 669 664 670 // call API 665 pHostent = gethostbyname((c onst char*)pRequest->ul1);671 pHostent = gethostbyname((char*)pRequest->ul1); 666 672 if (pHostent == NULL) // error ? 667 673 { … … 714 720 715 721 // call API 716 pProtoent = getprotobyname((c onst char*)pRequest->ul1);722 pProtoent = getprotobyname((char*)pRequest->ul1); 717 723 if (pProtoent == NULL) // error ? 718 724 { … … 765 771 766 772 // call API 767 pProtoent = getprotobyname(( constchar*)pRequest->ul1);773 pProtoent = getprotobyname(( char*)pRequest->ul1); 768 774 if (pProtoent == NULL) // error ? 769 775 { … … 816 822 817 823 // call API 818 pServent = getservbyname((c onst char*)pRequest->ul1,819 (c onst char*)pRequest->ul2);824 pServent = getservbyname((char*)pRequest->ul1, 825 (char*)pRequest->ul2); 820 826 if (pServent == NULL) // error ? 821 827 { … … 869 875 // call API 870 876 pServent = getservbyport((int )pRequest->ul1, 871 (c onst char*)pRequest->ul2);877 (char*)pRequest->ul2); 872 878 if (pServent == NULL) // error ? 873 879 { … … 957 963 958 964 // readiness for reading bytes ? 959 irc = ioctl(sockWin, FIONREAD, &iUnknown, sizeof(iUnknown));965 irc = ioctl(sockWin, FIONREAD, (char *)&iUnknown, sizeof(iUnknown)); 960 966 if ( (irc == 0) && (iUnknown > 0)) 961 967 usResult |= FD_READ;
Note:
See TracChangeset
for help on using the changeset viewer.