From: C H Forsyth <forsyth@vitanuova.com>
To: fernanbolando@mailc.net, 9fans@cse.psu.edu
Subject: Re: [9fans] porting linux program for beginners
Date: Tue, 14 Mar 2006 16:27:28 +0000 [thread overview]
Message-ID: <e90f16bde7c247ec408f47e1e48dc7c2@vitanuova.com> (raw)
In-Reply-To: <1d5d51400603140804m72eddf8jd4474a9f7ef0b23c@mail.gmail.com>
the compiler shows the linear type representation it uses internally.
IND is `indirect', a pointer, or *
UCHAR is `unsigned char'
CONST is obviously `const'
so in
dumb_input.c:249[stdin:1718] argument prototype mismatch "IND UCHAR" for "IND CONST CHAR": strlen
you're passing an unsigned char* to strlen, which expects const char* (or char*)
the compiler could possibly translate them back to normal C declarator form
from the internal one, but on the other hand, in more subtle cases,
seeing them written in linear form can be helpful if you've got
a * or () in the wrong place.
newer versions of gcc will object too,
so you might as well get the types right now.
next prev parent reply other threads:[~2006-03-14 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 16:04 Fernan Bolando
2006-03-14 16:08 ` andrey mirtchovski
2006-03-14 16:27 ` C H Forsyth [this message]
2006-03-14 16:47 ` David Leimbach
[not found] ` <4801e8bace9bf2d0ff5a01dd57bf1a79@vitanuova.com>
2006-03-14 18:17 ` Fernan Bolando
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=e90f16bde7c247ec408f47e1e48dc7c2@vitanuova.com \
--to=forsyth@vitanuova.com \
--cc=9fans@cse.psu.edu \
--cc=fernanbolando@mailc.net \
/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).