malloc error on pointer
From: jt (jtsoft_at_hotmail.com)
Date: 03/30/05
- Previous message: CBFalconer: "Re: How do I wait for the child process ?"
- Next in thread: Andrey Tarasevich: "Re: malloc error on pointer"
- Reply: Andrey Tarasevich: "Re: malloc error on pointer"
- Reply: Ben Pfaff: "Re: malloc error on pointer"
- Reply: Martin Ambuhl: "Re: malloc error on pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 00:53:20 GMT
Looks good to me, I don't understand whey the error below. Any reasons why
this would fail to compile.
Running on AIX using the CC compiler.
struct sockaddr *cliaddr;
"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
- Previous message: CBFalconer: "Re: How do I wait for the child process ?"
- Next in thread: Andrey Tarasevich: "Re: malloc error on pointer"
- Reply: Andrey Tarasevich: "Re: malloc error on pointer"
- Reply: Ben Pfaff: "Re: malloc error on pointer"
- Reply: Martin Ambuhl: "Re: malloc error on pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|