Add g_output_stream_write_all_async()
[platform/upstream/glib.git] / gio / tests / proxy.c
index cf54d69..8f687b9 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Authors: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
  */
@@ -278,7 +276,7 @@ use_inet_address (gboolean synchronous)
 {
   GSocketAddressEnumerator *enumerator;
   GSocketAddress *sockaddr;
-  GInetAddress *addr;
+  GInetAddress *addr = NULL;
   guint port = 0;
   gchar **ip_and_port;
 
@@ -322,7 +320,7 @@ use_unix_address (gboolean synchronous)
   GSocketAddressEnumerator *enumerator;
   GSocketAddress *sockaddr;
 
-  sockaddr = g_unix_socket_address_new_abstract (info, -1);
+  sockaddr = g_unix_socket_address_new_with_type (info, -1, G_UNIX_SOCKET_ADDRESS_ABSTRACT);
 
   if (sockaddr == NULL)
     {
@@ -580,8 +578,6 @@ main (gint argc, gchar **argv)
   gboolean cancel = FALSE;
   ProxyTestType type = USE_RESOLVER;
 
-  g_type_init ();
-
   while (argc >= 2 && argv[1][0] == '-')
     {
       if (!strcmp (argv[1], "-s"))