aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/commands/sync_cmd.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-11-01 01:56:33 +0000
committerMichael Brown <mcb30@ipxe.org>2013-11-01 17:00:16 +0000
commit92c56e129bae6dd054c89a6077009e25da5b7e29 (patch)
tree3485ab2d93a8e2f184d1859a3a9aa76b27ffc40b /src/hci/commands/sync_cmd.c
parentdc7a023715e8c317e8013737ccd8960ff781a15c (diff)
downloadipxe-92c56e129bae6dd054c89a6077009e25da5b7e29.tar.gz
[cmdline] Rewrite "sync" command to use monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/commands/sync_cmd.c')
-rw-r--r--src/hci/commands/sync_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hci/commands/sync_cmd.c b/src/hci/commands/sync_cmd.c
index ee932939c..3c9ef2a4d 100644
--- a/src/hci/commands/sync_cmd.c
+++ b/src/hci/commands/sync_cmd.c
@@ -24,7 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
-#include <ipxe/pending.h>
+#include <usr/sync.h>
/** @file
*
@@ -65,7 +65,7 @@ static int sync_exec ( int argc, char **argv ) {
return rc;
/* Wait for pending operations to complete */
- if ( ( rc = pending_wait ( opts.timeout ) ) != 0 ) {
+ if ( ( rc = sync ( opts.timeout ) ) != 0 ) {
printf ( "Operations did not complete: %s\n", strerror ( rc ) );
return rc;
}