summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 2f65284..7909fdf 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4,6 +4,7 @@
* Copyright © 2002 Sun Microsystems
* Copyright © 2003 Mariano Suarez-Alvarez
* Copyright © 2008, 2010 Christian Persch
+ * Copyright (C) 2012-2021 MATE Developers
*
* Mate-terminal is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,7 +25,6 @@
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
-#include <time.h>
#include <unistd.h>
#include <glib.h>
@@ -243,6 +243,7 @@ bus_acquired_cb (GDBusConnection *connection,
method_call_cb,
NULL,
NULL,
+ { 0 }
};
OwnData *data = (OwnData *) user_data;
@@ -290,7 +291,6 @@ name_acquired_cb (GDBusConnection *connection,
g_assert_not_reached ();
}
-
if (!terminal_app_handle_options (terminal_app_get (), data->options, TRUE /* do resume */, &error))
{
g_printerr ("Failed to handle options: %s\n", error->message);
@@ -525,7 +525,8 @@ main (int argc, char **argv)
if (options->startup_id == NULL)
{
- options->startup_id = g_strdup_printf ("_TIME%lu", g_get_monotonic_time () / 1000);
+ options->startup_id = g_strdup_printf ("_TIME%" G_GINT64_FORMAT,
+ g_get_monotonic_time () / 1000);
}
gdk_init (&argc, &argv);