As an aside, when you declare prototypes I find it is best to
only give the types of the parameters and not declare identifiers,
e.g.
        extern Elem mkoid(Ints *); // asn1.h
rather than
        extern Elem mkoid(Ints *oid); // asn1.h
This prevents confusion in environments where there is overuse
of the pre-processor and the identifier gets substituted.

--jim

On Mon Apr 17 02:51:00 EDT 2006, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I have this definitions:
> 
> extern Elem mkoid(Ints *oid); // asn1.h
> Ints * snmp_mkoid(char *str); // snmp_asn1.h
> char * oids[MAX];
> 
> and, this:
> 
> myElem = mkoid(snmp_mkoid(oids[0]));
> 
> The 8c returns:
> 
> x.c:216 function args not checked: snmp_mkoid
> x.c:216 argument prototype mismatch "INT" for "IND STRUCT Ints": mkoid
> 
> why?
> 
> --
> Rodolfo García "kix"
> 

Reply via email to