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 -->
  #1 (permalink)  
Old 05-03-2008
DNAx86 DNAx86 is offline
Registered User
 

Join Date: Jan 2008
Posts: 69
Question warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness

gcc gime me this error
warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
when I try to compile the code below:

Code:
	int sock, client_len, fd, i, errore;
	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)
Why?
Reply With Quote
Forum Sponsor