Avoid a warning while building with Gtk+ 3.0

This commit is contained in:
Pierre Pronchery 2014-06-27 02:22:27 +02:00
parent 8c50575597
commit 1ce0cb8a89

View File

@ -248,7 +248,7 @@ static int _terminal_open_tab(Terminal * terminal)
GtkWidget * widget; GtkWidget * widget;
char * argv[] = { BINDIR "/xterm", "xterm", "-into", NULL, char * argv[] = { BINDIR "/xterm", "xterm", "-into", NULL,
"-class", "Terminal", NULL, NULL }; "-class", "Terminal", NULL, NULL };
char buf[16]; char buf[32];
GSpawnFlags flags = G_SPAWN_FILE_AND_ARGV_ZERO GSpawnFlags flags = G_SPAWN_FILE_AND_ARGV_ZERO
| G_SPAWN_DO_NOT_REAP_CHILD; | G_SPAWN_DO_NOT_REAP_CHILD;
GError * error = NULL; GError * error = NULL;
@ -282,7 +282,7 @@ static int _terminal_open_tab(Terminal * terminal)
p->socket, TRUE); p->socket, TRUE);
#endif #endif
/* launch xterm */ /* launch xterm */
snprintf(buf, sizeof(buf), "%u", gtk_socket_get_id( snprintf(buf, sizeof(buf), "%lu", gtk_socket_get_id(
GTK_SOCKET(p->socket))); GTK_SOCKET(p->socket)));
argv[3] = buf; argv[3] = buf;
argv[6] = terminal->shell; argv[6] = terminal->shell;