* Re: [Qemu-trivial] [PATCH] configure: fix pam test warning
[not found] <20190404091725.20595-1-dgilbert@redhat.com>
@ 2019-04-04 9:19 ` Daniel P. Berrangé
2019-04-11 20:03 ` Laurent Vivier
0 siblings, 1 reply; 2+ messages in thread
From: Daniel P. Berrangé @ 2019-04-04 9:19 UTC (permalink / raw)
To: Dr. David Alan Gilbert (git); +Cc: qemu-devel, qemu-trivial
CC trivial
On Thu, Apr 04, 2019 at 10:17:25AM +0100, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> The pam test generates a warning on Fedora 29 with -O3 compilation
> because the headers declare that the pam_conversation pointer to
> pam_start must be non-NULL. Change it to use the same 0 initialised
> structure as we actually use in qauthz.
>
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> configure | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
>
> diff --git a/configure b/configure
> index 1c563a7027..73f7ad2be0 100755
> --- a/configure
> +++ b/configure
> @@ -2946,9 +2946,9 @@ if test "$auth_pam" != "no"; then
> int main(void) {
> const char *service_name = "qemu";
> const char *user = "frank";
> - const struct pam_conv *pam_conv = NULL;
> + const struct pam_conv pam_conv = { 0 };
> pam_handle_t *pamh = NULL;
> - pam_start(service_name, user, pam_conv, &pamh);
> + pam_start(service_name, user, &pam_conv, &pamh);
> return 0;
> }
> EOF
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-trivial] [PATCH] configure: fix pam test warning
2019-04-04 9:19 ` [Qemu-trivial] [PATCH] configure: fix pam test warning Daniel P. Berrangé
@ 2019-04-11 20:03 ` Laurent Vivier
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Vivier @ 2019-04-11 20:03 UTC (permalink / raw)
To: Daniel P. Berrangé, Dr. David Alan Gilbert (git)
Cc: qemu-trivial, qemu-devel
On 04/04/2019 11:19, Daniel P. Berrangé wrote:
> CC trivial
>
> On Thu, Apr 04, 2019 at 10:17:25AM +0100, Dr. David Alan Gilbert (git) wrote:
>> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>>
>> The pam test generates a warning on Fedora 29 with -O3 compilation
>> because the headers declare that the pam_conversation pointer to
>> pam_start must be non-NULL. Change it to use the same 0 initialised
>> structure as we actually use in qauthz.
>>
>> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
>> ---
>> configure | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Acked-by: Daniel P. Berrangé <berrange@redhat.com>
>
>>
>> diff --git a/configure b/configure
>> index 1c563a7027..73f7ad2be0 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2946,9 +2946,9 @@ if test "$auth_pam" != "no"; then
>> int main(void) {
>> const char *service_name = "qemu";
>> const char *user = "frank";
>> - const struct pam_conv *pam_conv = NULL;
>> + const struct pam_conv pam_conv = { 0 };
>> pam_handle_t *pamh = NULL;
>> - pam_start(service_name, user, pam_conv, &pamh);
>> + pam_start(service_name, user, &pam_conv, &pamh);
>> return 0;
>> }
>> EOF
>
> Regards,
> Daniel
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-11 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190404091725.20595-1-dgilbert@redhat.com>
2019-04-04 9:19 ` [Qemu-trivial] [PATCH] configure: fix pam test warning Daniel P. Berrangé
2019-04-11 20:03 ` Laurent Vivier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).