[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

[c] pthreads og endnu en warning jeg ikke lige kan komme af med.



hejsa
jeg har et lille program som har et par tråde der hver især skal stå og
lytte på forskellige ting (forskellige sockets) 

det hele kompiler meget fint på nær et par warnings:
main.c:75: warning: passing arg 3 of `pthread_create' from incompatible
pointer type 
main.c:78: warning: passing arg 3 of `pthread_create' from incompatible
pointer type

linje 75:
pthread_create(&WorkerListener, NULL, ListenForWorker, &lagerarbejder);

linje 78:
pthread_create(&OrderListener, NULL, ListenForOrder, &Ordre);


ListenFor[Worker|Order]  er defineret som:
void ListenForWorker(struct hostent *worker);
void ListenForOrder(Orderliste *Ordre);

lagerarbejder er 
struct hostent lagerarbejder

Ordre er den som i kender fra tidligere tråd, nemlig:
typedef struct orderliste {
	int ordernr;
	int hylde;
	int varenr;
	int antal;
	struct orderliste *next;

} Orderliste;


Nogen der kan sige mig hvorfor de warnings kommer? programmet kører fint
nok og tråde bliver fint oprettet og gør hvad de skal. 
MVH
Kim Schulz


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:10 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *