Re: [SSSD] SSSD ticket #2214

2014-04-09 Thread Jakub Hrozek
On Wed, Apr 09, 2014 at 03:53:59PM +0200, Michal Židek wrote: > On 04/07/2014 10:23 AM, Jakub Hrozek wrote: > >On Fri, Apr 04, 2014 at 06:30:40PM -0400, Pavel Reichl wrote: > >>Or you could write a wrapper function 'diff_string_lists_const' calling > >>original 'diff_string_lists' but at least hid

Re: [SSSD] SSSD ticket #2214

2014-04-09 Thread Michal Židek
On 04/07/2014 10:23 AM, Jakub Hrozek wrote: On Fri, Apr 04, 2014 at 06:30:40PM -0400, Pavel Reichl wrote: Or you could write a wrapper function 'diff_string_lists_const' calling original 'diff_string_lists' but at least hiding the nasty discard_const_p. Do we have the discard_const hack used

Re: [SSSD] SSSD ticket #2214

2014-04-07 Thread Lukas Slebodnik
On (07/04/14 10:23), Jakub Hrozek wrote: >On Fri, Apr 04, 2014 at 06:30:40PM -0400, Pavel Reichl wrote: >> Or you could write a wrapper function 'diff_string_lists_const' calling >> original 'diff_string_lists' but at least hiding the nasty discard_const_p. > >Do we have the discard_const hack use

Re: [SSSD] SSSD ticket #2214

2014-04-07 Thread Jakub Hrozek
else than the AD provider enumeration? If not, then I would just close the ticket. If there are more occurences, the wrapper might help. > > - Original Message - > From: "Dmitri Pal" > To: sssd-devel@lists.fedorahosted.org > Sent: Friday, April 4, 2014 11:57:47 PM > Su

Re: [SSSD] SSSD ticket #2214

2014-04-04 Thread Pavel Reichl
11:57:47 PM Subject: Re: [SSSD] SSSD ticket #2214 On 04/03/2014 02:59 PM, Michal Židek wrote: > Hello, > > I was looking at > https://fedorahosted.org/sssd/ticket/2214 > > I did not know about C being that paranoid with nested > pointers to const data when passed as function ar

Re: [SSSD] SSSD ticket #2214

2014-04-04 Thread Dmitri Pal
On 04/03/2014 02:59 PM, Michal Židek wrote: Hello, I was looking at https://fedorahosted.org/sssd/ticket/2214 I did not know about C being that paranoid with nested pointers to const data when passed as function arguments (I probably don't use const as often as I should, so I never bumped into

[SSSD] SSSD ticket #2214

2014-04-03 Thread Michal Židek
Hello, I was looking at https://fedorahosted.org/sssd/ticket/2214 I did not know about C being that paranoid with nested pointers to const data when passed as function arguments (I probably don't use const as often as I should, so I never bumped into this problem before). Good explanation on wh