PolicyKit oddities

Scott James Remnant scott at canonical.com
Fri Jun 6 08:54:12 PDT 2008


On Fri, 2008-06-06 at 09:35 -0400, David Zeuthen wrote:

> Probably even const * char *
> 
Except that in C, const * char * is not compatible with char ** -- you
can only add one layer of const.

The usual promise idiom for a char ** you don't plan to modify is
char * const *.  It's not "const enough" to really guarantee you won't
modify it, but it makes gcc happy.

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/hal/attachments/20080606/403ad309/attachment.pgp 


More information about the hal mailing list