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 /daemons/lvmpolld | |
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 'daemons/lvmpolld')
-rw-r--r-- | daemons/lvmpolld/lvmpolld-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmpolld/lvmpolld-core.c b/daemons/lvmpolld/lvmpolld-core.c index 9d46c7edd..1da2da229 100644 --- a/daemons/lvmpolld/lvmpolld-core.c +++ b/daemons/lvmpolld/lvmpolld-core.c @@ -529,7 +529,7 @@ static response progress_info(client_handle h, struct lvmpolld_state *ls, reques if (st.polling_finished) r = daemon_reply_simple(LVMPD_RESP_FINISHED, "reason = %s", st.cmd_state.signal ? LVMPD_REAS_SIGNAL : LVMPD_REAS_RETCODE, - LVMPD_PARM_VALUE " = %d", st.cmd_state.signal ?: st.cmd_state.retcode, + LVMPD_PARM_VALUE " = %d", (int64_t)(st.cmd_state.signal ?: st.cmd_state.retcode), NULL); else r = daemon_reply_simple(LVMPD_RESP_IN_PROGRESS, NULL); |