mountoperation: Silence gcc

Also, printf()ing a GPid should be forbidden.
This commit is contained in:
Benjamin Otte 2016-02-06 03:58:39 +01:00 committed by Benjamin Otte
parent 1d980192fa
commit 573f51cb29
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ _gtk_mount_operation_kill_process (GPid pid,
G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
_("Cannot kill process with PID %d. Operation is not implemented."),
(int) pid);
(int) (gssize) pid);
return FALSE;
}

View File

@ -1090,7 +1090,7 @@ add_pid_to_process_list_store (GtkMountOperation *mount_operation,
&pixbuf);
if (name == NULL)
name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) pid);
name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) (gssize) pid);
if (command_line == NULL)
command_line = g_strdup ("");