The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-04-2008
redhead's Avatar
redhead redhead is offline
Registered User
 

Join Date: Feb 2002
Location: Denmark
Posts: 47
You might want to keep it as the expected type:
Code:
int sock, fd, i, errore;
socklen_t client_len;
struct sockaddr_in server, client;
int counter=0;
int risorse[NR];	// Risorse
char filename[FILENAME_SIZE]="EsameServerLock";
int fdMutex;
fd = accept(sock, (struct sockaddr *)&client, &client_len);
Reply With Quote