coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix integer cast warning on chcon.c


From: Pádraig Brady
Subject: Re: [PATCH] Fix integer cast warning on chcon.c
Date: Wed, 02 Jul 2014 10:46:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 07/02/2014 07:02 AM, Alex Deymo wrote:
> The warning was introduced yesterday on this change:
> 
> http://lists.gnu.org/archive/html/coreutils/2014-07/msg00002.html
> 
> src/chcon.c:144:21: error: initialization makes integer from pointer
> without a cast
> 
> Feel free to modify the patch as you wish.

Ah right on systems without libselinux context_t is an int.
We already cater for that in src/selinux.c by initializing
with 0 without the cast. So I adjusted your patch to do
the same and pushed.

thanks!
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]