[kdbus] Update kdbus interface header (commit: c34e65633b4e)
[platform/upstream/glib.git] / gio / tests / sleepy-stream.c
index 1c6613e..4d3ca1d 100644 (file)
@@ -100,7 +100,7 @@ sleepy_stream_read (GInputStream  *stream,
     {
       if (sleepy->built_to_fail)
         {
-          g_set_error (error, 0, 0, "fail");
+          g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "fail");
           return -1;
         }
       else
@@ -164,11 +164,8 @@ read_line (GDataInputStream  *stream,
            GError           **error)
 {
   gsize length;
-  int eol_len;
   char *str;
 
-  eol_len = 1 + (eol[1] != '\0');
-
   str = g_data_input_stream_read_line (stream, &length, NULL, error);
 
   if (str == NULL)
@@ -288,7 +285,6 @@ main (int argc, char **argv)
   g_test_init (&argc, &argv, NULL);
   g_test_bug_base ("http://bugzilla.gnome.org/");
 
-  g_type_init ();
   g_test_add_func ("/filter-stream/input", test);
   g_test_add_func ("/filter-stream/async", asynch);