Fix for libsoup deprecations
authorStef Walter <stefw@gnome.org>
Thu, 12 Jul 2012 05:33:29 +0000 (07:33 +0200)
committerStef Walter <stefw@gnome.org>
Thu, 12 Jul 2012 05:34:41 +0000 (07:34 +0200)
 * soup_message_headers_get() has been deprecated

https://bugzilla.gnome.org/show_bug.cgi?id=679781

tools/gssdp-device-sniffer.c

index 4ae3943..5e95794 100644 (file)
@@ -179,9 +179,9 @@ packet_to_treeview_data (const gchar *from_ip,
         
         /* Now the Packet Information */
         if (type == _GSSDP_DISCOVERY_RESPONSE)
-                target = soup_message_headers_get (headers, "ST");
+                target = soup_message_headers_get_one (headers, "ST");
         else
-                target = soup_message_headers_get (headers, "NT");
+                target = soup_message_headers_get_one (headers, "NT");
         
         packet_data[3] = g_strdup (target);
         packet_data[4] = NULL;