1 --- lightdm-1.28.0/src/process.c 2018-12-22 00:05:08.200018798 +0000
2 +++ lightdm-1.28.0/src/process.c.new 2018-12-22 10:05:06.767183248 +0000
3 @@ -172,9 +172,9 @@ process_watch_cb (GPid pid, gint status,
4 priv->exit_status = status;
6 if (WIFEXITED (status))
7 - g_debug ("Process %d exited with return value %d", pid, WEXITSTATUS (status));
8 + g_debug ("Process %ld exited with return value %d", (long)pid, WEXITSTATUS (status));
9 else if (WIFSIGNALED (status))
10 - g_debug ("Process %d terminated with signal %d", pid, WTERMSIG (status));
11 + g_debug ("Process %ld terminated with signal %d", (long)pid, WTERMSIG (status));
13 if (priv->quit_timeout)
14 g_source_remove (priv->quit_timeout);
15 @@ -261,7 +261,7 @@ process_start (Process *process, gboolea
19 - g_debug ("Launching process %d: %s", pid, priv->command);
20 + g_debug ("Launching process %ld: %s", (long)pid, priv->command);
24 @@ -306,7 +306,7 @@ process_signal (Process *process, int si
28 - g_debug ("Sending signal %d to process %d", signum, priv->pid);
29 + g_debug ("Sending signal %d to process %ld", signum, (long)priv->pid);
31 if (kill (priv->pid, signum) < 0)
33 @@ -417,7 +417,7 @@ handle_signal (GIOChannel *source, GIOCo
37 - g_debug ("Got signal %d from process %d", signo, pid);
38 + g_debug ("Got signal %d from process %ld", signo, (long)pid);
40 Process *process = g_hash_table_lookup (processes, GINT_TO_POINTER (pid));
42 --- lightdm-1.28.0/src/lightdm.c.~1~ 2018-08-21 01:58:09.000000000 +0000
43 +++ lightdm-1.28.0/src/lightdm.c 2018-12-22 00:05:08.200566588 +0000
44 @@ -560,7 +560,7 @@ main (int argc, char **argv)
46 loop = g_main_loop_new (NULL, FALSE);
48 - GList *messages = g_list_append (NULL, g_strdup_printf ("Starting Light Display Manager %s, UID=%i PID=%i", VERSION, getuid (), getpid ()));
49 + GList *messages = g_list_append (NULL, g_strdup_printf ("Starting Light Display Manager %s, UID=%i PID=%li", VERSION, getuid (), (long)getpid ()));
51 g_signal_connect (process_get_current (), PROCESS_SIGNAL_GOT_SIGNAL, G_CALLBACK (signal_cb), NULL);
53 @@ -717,7 +717,7 @@ main (int argc, char **argv)
54 FILE *pid_file = fopen (pid_path, "w");
57 - fprintf (pid_file, "%d\n", getpid ());
58 + fprintf (pid_file, "%ld\n", (long)getpid ());