Commit 44d4be6c authored by Michael Terry's avatar Michael Terry

fixe a few more valac 0.17.4 warnings

parent 17527cfe
......@@ -189,7 +189,7 @@ internal class DuplicityInstance : Object
if (pipes[1] != -1)
Posix.close(pipes[1]);
read_log();
read_log.begin();
}
public bool is_started()
......@@ -280,7 +280,7 @@ internal class DuplicityInstance : Object
else {
// We're reading faster than duplicity can provide. Wait a bit
// before trying again.
Timeout.add_seconds(1, () => {read_log_lines(); return false;});
Timeout.add_seconds(1, () => {read_log_lines.begin(); return false;});
return; // skip cleanup at bottom of this function
}
}
......@@ -340,7 +340,7 @@ internal class DuplicityInstance : Object
// This loop goes on while rest of class is doing its work. We ref
// it to make sure that the rest of the class doesn't drop from under us.
ref();
read_log_lines();
yield read_log_lines();
}
// If start is < 0, starts at word.length - 1.
......
......@@ -129,7 +129,7 @@ internal class DuplicityJob : DejaDup.ToolJob
var settings = DejaDup.get_settings();
delete_age = settings.get_int(DejaDup.DELETE_AFTER_KEY);
get_envp();
get_envp.begin();
}
async void get_envp()
......@@ -394,7 +394,7 @@ internal class DuplicityJob : DejaDup.ToolJob
extra_argv.append("--dry-run");
}
else if (!checked_backup_space) {
check_backup_space();
check_backup_space.begin();
return true;
}
else {
......
......@@ -38,7 +38,7 @@ internal abstract class RecursiveOp : Object
bool idle_action()
{
start_async();
start_async.begin();
return false;
}
......@@ -50,7 +50,7 @@ internal abstract class RecursiveOp : Object
loop.run();
}
public void start_async()
public async void start_async()
{
if (src != null)
src_type = src.query_file_type(FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);
......@@ -59,7 +59,7 @@ internal abstract class RecursiveOp : Object
switch (src_type) {
case FileType.DIRECTORY:
do_dir();
yield do_dir();
break;
default:
handle_file();
......@@ -76,7 +76,7 @@ internal abstract class RecursiveOp : Object
op.ref();
op.done.connect((m) => {remove_ref(); m.unref();});
op.raise_error.connect((m, s, d, e) => {raise_error(s, d, e);}); // percolate up
op.start_async();
op.start_async.begin();
}
static const int NUM_ENUMERATED = 16;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment