summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2012-09-03 10:50:22 -0400
committerWill Thompson <will@willthompson.co.uk>2012-09-03 10:50:22 -0400
commitb5bdd77ff2c8532365806bdfae490b59295fd795 (patch)
tree740a9c9c97c815b36a291162de1d0075cf202e93
parent53070dfb17b60520169a20c2c72b0021144cb93f (diff)
Use g_thread_try_new rather than g_thread_create
The latter is deprecated. This seems like an extremely worthwhile change to have to make.
-rw-r--r--Makefile2
-rw-r--r--c-sources/pcap-monitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9be9b4c..c2537b4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CFLAGS = -g -O2 -Wall -Wunused
DBUS_FLAGS = $(shell pkg-config --cflags --libs dbus-1)
-GIO_FLAGS := $(shell pkg-config --cflags --libs glib-2.0 gio-2.0 gio-unix-2.0)
+GIO_FLAGS := $(shell pkg-config --cflags --libs 'glib-2.0 >= 2.32' gio-2.0 gio-unix-2.0)
PCAP_FLAGS := $(shell pcap-config --cflags pcap-config --libs)
DESTDIR =
PREFIX = /usr/local
diff --git a/c-sources/pcap-monitor.c b/c-sources/pcap-monitor.c
index c642813..cfcda5a 100644
--- a/c-sources/pcap-monitor.c
+++ b/c-sources/pcap-monitor.c
@@ -443,7 +443,7 @@ initable_init (
return FALSE;
}
- priv->thread = g_thread_create (log_thread, &priv->td, TRUE, error);
+ priv->thread = g_thread_try_new ("monitor", log_thread, &priv->td, error);
if (priv->thread == NULL)
{
g_prefix_error (error, "Couldn't spawn logging thread: ");