mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 09:52:29 +01:00
Put back int instead of socklen_t, because in libc5 socklen_t is not
defined making the compilation process to fail.
This commit is contained in:
@@ -195,7 +195,7 @@ inputHandler(int fd, int mask, void *clientData) /*FOLD00*/
|
|||||||
if (cPtr->state == WCInProgress) {
|
if (cPtr->state == WCInProgress) {
|
||||||
Bool failed;
|
Bool failed;
|
||||||
int result;
|
int result;
|
||||||
socklen_t len = sizeof(result);
|
int len = sizeof(result);
|
||||||
|
|
||||||
WCErrorCode = 0;
|
WCErrorCode = 0;
|
||||||
if (getsockopt(cPtr->sock, SOL_SOCKET, SO_ERROR,
|
if (getsockopt(cPtr->sock, SOL_SOCKET, SO_ERROR,
|
||||||
@@ -393,7 +393,7 @@ WMCreateConnectionWithSocket(int sock, Bool closeOnRelease) /*FOLD00*/
|
|||||||
{
|
{
|
||||||
WMConnection *cPtr;
|
WMConnection *cPtr;
|
||||||
struct sockaddr_in clientname;
|
struct sockaddr_in clientname;
|
||||||
socklen_t size;
|
int size;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
cPtr = createConnectionWithSocket(sock, closeOnRelease);
|
cPtr = createConnectionWithSocket(sock, closeOnRelease);
|
||||||
@@ -443,7 +443,7 @@ WMCreateConnectionAsServerAtAddress(char *host, char *service, char *protocol) /
|
|||||||
WMConnection *cPtr;
|
WMConnection *cPtr;
|
||||||
struct sockaddr_in *socketaddr;
|
struct sockaddr_in *socketaddr;
|
||||||
int sock, on;
|
int sock, on;
|
||||||
socklen_t size;
|
int size;
|
||||||
|
|
||||||
WCErrorCode = 0;
|
WCErrorCode = 0;
|
||||||
|
|
||||||
@@ -654,7 +654,7 @@ WMConnection*
|
|||||||
WMAcceptConnection(WMConnection *listener) /*FOLD00*/
|
WMAcceptConnection(WMConnection *listener) /*FOLD00*/
|
||||||
{
|
{
|
||||||
struct sockaddr_in clientname;
|
struct sockaddr_in clientname;
|
||||||
socklen_t size;
|
int size;
|
||||||
int newSock;
|
int newSock;
|
||||||
WMConnection *newConnection;
|
WMConnection *newConnection;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user