fixed some compiler warnings

This commit is contained in:
Martin Willi
2008-10-27 11:13:33 +00:00
parent aeaa6a9b45
commit a1db79b31a
6 changed files with 11 additions and 9 deletions
+2 -6
View File
@@ -207,7 +207,7 @@ static int exec(private_mconsole_t *this, void(*cb)(void*,char*,size_t),
/**
* Poll until guest is ready
*/
static bool wait_bootup(private_mconsole_t *this)
static void wait_bootup(private_mconsole_t *this)
{
/* wait for init process to appear */
while (request(this, ignore, NULL, "exec ps -p 1 > /dev/null"))
@@ -346,11 +346,7 @@ mconsole_t *mconsole_create(char *notify, void(*idle)(void))
}
unlink(notify);
if (!wait_bootup(this))
{
destroy(this);
return NULL;
}
wait_bootup(this);
return &this->public;
}