Re: malloc error on pointer

From: Ben Pfaff (blp_at_cs.stanford.edu)
Date: 03/30/05


Date: Tue, 29 Mar 2005 17:40:38 -0800


"jt" <jtsoft@hotmail.com> writes:

> "tcpserver.c", line 88.10: 1506-068 (W) Operation between types "struct
> sockaddr *" and "int" is not allowed.
> cliaddr=malloc(addrlen); //<---------this is the error

You forgot to #include <stdlib.h>.

-- 
"Some people *are* arrogant, and others read the FAQ."
--Chris Dollin