diff options
author | Marian Csontos <mcsontos@redhat.com> | 2015-07-10 11:50:06 +0200 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2015-07-10 16:16:57 +0200 |
commit | 738ae4a77f3e28b408c2a401ebce6db6949395b0 (patch) | |
tree | 07338c273e8350202227aa0676feffe947047d0f /lib/lvmpolld/lvmpolld-client.c | |
parent | 47ac6a1a2eedd191ac69dea45490f8104b596fc5 (diff) | |
download | lvm2-738ae4a77f3e28b408c2a401ebce6db6949395b0.tar.gz |
lvmpolld: Fix segfault on 32 bit architectures
Explicit conversions are needed to align writes and reads on the stack.
int64_t is popped from stack while int was pushed.
Diffstat (limited to 'lib/lvmpolld/lvmpolld-client.c')
-rw-r--r-- | lib/lvmpolld/lvmpolld-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lvmpolld/lvmpolld-client.c b/lib/lvmpolld/lvmpolld-client.c index 8be2d7b84..f7faa8b1e 100644 --- a/lib/lvmpolld/lvmpolld-client.c +++ b/lib/lvmpolld/lvmpolld-client.c @@ -147,7 +147,7 @@ static struct progress_info _request_progress_info(const char *uuid, unsigned ab } if (abort_polling && - !daemon_request_extend(req, LVMPD_PARM_ABORT " = %d", abort_polling, NULL)) { + !daemon_request_extend(req, LVMPD_PARM_ABORT " = %d", (int64_t)abort_polling, NULL)) { log_error("Failed to create " LVMPD_REQ_PROGRESS " request."); goto out_req; } @@ -228,14 +228,14 @@ static int _process_poll_init(const struct cmd_context *cmd, const char *poll_ty } if (parms->aborting && - !(daemon_request_extend(req, LVMPD_PARM_ABORT " = %d", parms->aborting, NULL))) { + !(daemon_request_extend(req, LVMPD_PARM_ABORT " = %d", (int64_t)(parms->aborting), NULL))) { log_error("Failed to create %s request." , poll_type); goto out_req; } if (cmd->handles_missing_pvs && !(daemon_request_extend(req, LVMPD_PARM_HANDLE_MISSING_PVS " = %d", - cmd->handles_missing_pvs, NULL))) { + (int64_t)(cmd->handles_missing_pvs), NULL))) { log_error("Failed to create %s request." , poll_type); goto out_req; } |