[PATCH weston] systemd: fix Wincompatible-pointer-type
Pekka Paalanen
ppaalanen at gmail.com
Fri Jan 27 15:26:04 UTC 2017
On Mon, 23 Jan 2017 12:42:43 +0000
"Ucan, Emre (ADITG/SW1)" <eucan at de.adit-jv.com> wrote:
> The parameter is passed in safe_strtoint function.
> The function expects its parameters in int32_t
> data type. Therefore, c compiler throws a
> -Wincompatible-pointer-type warning.
>
> This patch changes data type of the parameter
> to int32_t.
>
> Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
> ---
> compositor/systemd-notify.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/compositor/systemd-notify.c b/compositor/systemd-notify.c
> index 50f03cb..e53a9d2 100644
> --- a/compositor/systemd-notify.c
> +++ b/compositor/systemd-notify.c
> @@ -120,7 +120,7 @@ wet_module_init(struct weston_compositor *compositor,
> {
> char *watchdog_time_env;
> struct wl_event_loop *loop;
> - long watchdog_time_conv;
> + int32_t watchdog_time_conv;
> struct systemd_notifier *notifier;
>
> notifier = zalloc(sizeof *notifier);
Pushed:
fbce2f5..1298073 master -> master
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170127/1d36006b/attachment.sig>
More information about the wayland-devel
mailing list