From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3096bd910604162350j7be64566i5478c547558bd9da@mail.gmail.com> Date: Mon, 17 Apr 2006 08:50:21 +0200 From: "Rodolfo (kix)" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21733_24997937.1145256621608" Subject: [9fans] Function args not checked Topicbox-Message-UUID: 37b8c3cc-ead1-11e9-9d60-3106f5b1d025 ------=_Part_21733_24997937.1145256621608 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D 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=EDa "kix" ------=_Part_21733_24997937.1145256621608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D 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&= quot;: mkoid

why?

--
Rodolfo Garc=EDa "= ;kix" ------=_Part_21733_24997937.1145256621608--