From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Function args not checked
Date: Mon, 17 Apr 2006 10:52:36 -0400 [thread overview]
Message-ID: <40e76fd4ab1b047841b5829ed8015b0e@plan9.bell-labs.com> (raw)
In-Reply-To: <3096bd910604162350j7be64566i5478c547558bd9da@mail.gmail.com>
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, rodolfogarciap@gmail.com 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"
>
next prev parent reply other threads:[~2006-04-17 14:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-17 6:50 Rodolfo (kix)
2006-04-17 7:00 ` geoff
2006-04-17 7:25 ` Rodolfo (kix)
2006-04-17 14:52 ` jmk [this message]
2006-04-17 15:17 ` "Nils O. Selåsdal"
2006-04-17 15:28 ` David Leimbach
2006-04-17 15:31 ` jmk
2006-04-17 15:40 ` Paul Lalonde
2006-04-17 16:30 ` Skip Tavakkolian
2006-04-17 20:43 ` Don Bailey
2006-04-17 15:53 ` Victor Nazarov
2006-04-17 16:00 ` Devon H. O'Dell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40e76fd4ab1b047841b5829ed8015b0e@plan9.bell-labs.com \
--to=jmk@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).