X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ftime.c;h=3a4604929a2669ed7fb1c02ed143e7f4031c34ce;hb=fa44536b0ff12102c72ae0337e51d272f0fc2353;hp=ed00c18e9b1be64f43217ad1bf11ea3557606537;hpb=2f1a50d81671810256dce0852e6b1e0810ac44af;p=libguestfs.git diff --git a/fish/time.c b/fish/time.c index ed00c18..3a46049 100644 --- a/fish/time.c +++ b/fish/time.c @@ -22,11 +22,12 @@ #include #include #include +#include #include "fish.h" int -do_time (const char *cmd, int argc, char *argv[]) +run_time (const char *cmd, size_t argc, char *argv[]) { struct timeval start_t, end_t; int64_t start_us, end_us, elapsed_us; @@ -38,7 +39,7 @@ do_time (const char *cmd, int argc, char *argv[]) gettimeofday (&start_t, NULL); - if (issue_command (argv[0], &argv[1], NULL) == -1) + if (issue_command (argv[0], &argv[1], NULL, 0) == -1) return -1; gettimeofday (&end_t, NULL);