aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-20 03:44:04 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:16:15 (GMT)
commit3015c5316eb13a65357e64a5acf2dd374153f998 (patch)
tree82bf9f7ec9e73073f92addfcd4121d5b88f5be5a
parent156d68d9701d720e27456be86ab46c8012f5e443 (diff)
fileio: use g_thread_new() instead of g_thread_create()
fileio.c:226:9: warning: ‘g_thread_create’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] g_thread_create ((GThreadFunc) save_thread, cam, FALSE, NULL); ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:108, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:23, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from v4l.h:14, from fileio.h:1, from fileio.c:1: /usr/include/glib-2.0/glib/deprecated/gthread.h:104:10: note: declared here GThread *g_thread_create (GThreadFunc func, ^~~~~~~~~~~~~~~ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 8a24334..4c567f8 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -223,7 +223,7 @@ void remote_save (cam * cam)
* } */
remote_thread =
- g_thread_create ((GThreadFunc) save_thread, cam, FALSE, NULL);
+ g_thread_new ("remote", (GThreadFunc) save_thread, cam);
g_free (ext);
//free (tmp);

Privacy Policy