summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2017-01-23 12:42:43 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-01-27 17:25:11 +0200
commit1298073b5a15cfedfc00cb2207376671145fc074 (patch)
treea201b1d222a3f33b62b37a14e3f1ead3ef63a05a
parentfbce2f5dd938965d3c004ae6e693a62f5acfa828 (diff)
systemd: fix Wincompatible-pointer-type
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@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--compositor/systemd-notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/systemd-notify.c b/compositor/systemd-notify.c
index 50f03cbc..e53a9d28 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);