All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SELinux List <SELinux@tycho.nsa.gov>
Subject: Re: [SEPOL] Const in APIs (part 1)
Date: Fri, 06 Jan 2006 08:55:27 -0500	[thread overview]
Message-ID: <43BE76CF.6070804@cornell.edu> (raw)
In-Reply-To: <1136559006.16811.26.camel@moss-spartans.epoch.ncsc.mil>


>> Makes a ton of things const for the purposes of enhanced error checking.
>>
>> I can't figure this out out:
>> context.c: In function ‘sepol_check_context’:
>> context.c:25: warning: passing argument 1 of ‘sepol_context_to_sid’ 
>> discards qualifiers from pointer target type
>>
>> Something's confusing it - either the hidden proto, or the fact that the 
>> typedef wraps the pointer - not sure why it won't go away.
>>     
>
> I added an explicit type cast to silence it.
>   
... but that's cheating! Why does it really occur?
The whole point of the const types is to reveal bugs, which you are 
hiding by casting..



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2006-01-06 13:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-05 18:20 [SEPOL] Const in APIs (part 1) Ivan Gyurdiev
2006-01-06 14:50 ` Stephen Smalley
2006-01-06 13:55   ` Ivan Gyurdiev [this message]
2006-01-06 16:06     ` Stephen Smalley

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=43BE76CF.6070804@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=SELinux@tycho.nsa.gov \
    --cc=sds@tycho.nsa.gov \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.