[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/13] configure: fix pam test warning
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL 07/13] configure: fix pam test warning |
Date: |
Thu, 2 May 2019 20:58:29 +0200 |
From: "Dr. David Alan Gilbert" <address@hidden>
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 <address@hidden>
Acked-by: Daniel P. Berrangé <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 60719ddcc5b0..a2607afb3408 100755
--- a/configure
+++ b/configure
@@ -2940,9 +2940,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
--
2.20.1
- [Qemu-devel] [PULL 00/13] Trivial branch patches, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 01/13] hw/net/pcnet: Use qemu_log_mask(GUEST_ERROR) instead of printf, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 08/13] Update configure, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 04/13] Clean up includes, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 05/13] doc: fix the configuration path, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 11/13] Makefile: Let the 'clean' rule remove qemu-ga.exe on Windows hosts, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 09/13] Header cleanups, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 10/13] net: Print output of "-net nic, model=help" to stdout instead of stderr, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 03/13] CODING_STYLE: indent example code as all others, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 07/13] configure: fix pam test warning,
Laurent Vivier <=
- [Qemu-devel] [PULL 12/13] hw/sparc/leon3: Allow load of uImage firmwares, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 02/13] CODING_STYLE: specify the indent rule for multiline code, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 06/13] qom: use object_new_with_type in object_new_with_propv, Laurent Vivier, 2019/05/02
- [Qemu-devel] [PULL 13/13] sockets: avoid string truncation warnings when copying UNIX path, Laurent Vivier, 2019/05/02
- Re: [Qemu-devel] [PULL 00/13] Trivial branch patches, Peter Maydell, 2019/05/03