[Freeipa-devel] [PATCH][SSSD] Clean up warnings in monitor.c

Sumit Bose sbose at redhat.com
Tue May 12 13:29:25 UTC 2009


Stephen Gallagher schrieb:
> On 05/12/2009 08:33 AM, Stephen Gallagher wrote:
>> On 05/12/2009 02:38 AM, Sumit Bose wrote:
>>> Stephen Gallagher schrieb:
>>>> Updated patch, also cleaning up warning in confdb.c
>>>>
>>>> On 05/11/2009 02:43 PM, Stephen Gallagher wrote:
>>>>> GCC 4.4.0 reveals more warnings than previous versions.
>>>>>
>>>>> Clean up function prototype, return without value and pointer signedness
>>>>> warnings.
>>>>>
>>> All changes make sense to me. Wouldn't it be nicer to have
>>> "opt_config_file = talloc_strdup(NULL, CONFDB_DEFAULT_CONFIG_FILE);"
>>> after server_setup? Then you can use main_ctx and do not have to create
>>> a top level context for opt_config_file.
>>>
>>> bye,
>>> Sumit
>> I'd rather not have it be a child of the server_setup, actually.
>> Valgrind can't tell if it's lost at that point. However, I have modified
>> the code so that it's explicitly talloc_free()-ed immediately after
>> monitor configuration. I checked to make sure that it was
>> talloc_strdup()-ed into the confdb_file_ctx inside, so it's safe to
>> remove it.
>>
>> Please see the new patch.
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Freeipa-devel mailing list
>> Freeipa-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/freeipa-devel
> 
> This time with patch attached.
> 
> Move the return 6 after the if-else.
> 
ACK

bye,
Sumit




More information about the Freeipa-devel mailing list