malloc error on pointer

From: jt (jtsoft_at_hotmail.com)
Date: 03/30/05

  • Next message: Andrey Tarasevich: "Re: malloc error on pointer"
    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


  • Next message: Andrey Tarasevich: "Re: malloc error on pointer"

    Relevant Pages

    • Re: malloc error on pointer
      ... Any reasons why ... > this would fail to compile. ... > Running on AIX using the CC compiler. ...
      (comp.lang.c)
    • Re: Null MDE / MDB failure
      ... Yes we do know about the auto correct - all machines have this switched ... Then open the database in the older version and compile ... > differences on the machines that do fail. ... We use Access 2k to get to the MDE ...
      (microsoft.public.access.forms)
    • Re: Null MDE / MDB failure
      ... The fact that the failing code refers to a field that is not even in the ... Then open the database in the older version and compile ... differences on the machines that do fail. ... We use Access 2k to get to the MDE ...
      (microsoft.public.access.forms)
    • Two utility programs
      ... To compile this program ... To determine if you have AIX 5.2 type ... echo $CMD; exec $CMD ...
      (comp.unix.aix)
    • Re: QMAIL for AIX
      ... With the changes that you suggested I was able to compile ... I am running AIX 4.3.3 by the way. ... However got such errors while building qmail. ... register char ch; ...
      (comp.unix.aix)