X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ftime.c;h=3a4604929a2669ed7fb1c02ed143e7f4031c34ce;hb=ca03635a4c83afbe9b51fe846a8b3d5361462a90;hp=f2fa0fcf9becfa849783a67ce787f214d743ebd8;hpb=0003ea2c3dbaa7e22f4f616539136821d80694b8;p=libguestfs.git diff --git a/fish/time.c b/fish/time.c index f2fa0fc..3a46049 100644 --- a/fish/time.c +++ b/fish/time.c @@ -22,11 +22,12 @@ #include #include #include +#include #include "fish.h" int -run_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 @@ run_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);