X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fcopy.c;h=2aa7c0a11ab0938fdc6fc6ecb0d896a3affa0039;hb=b8e1dee73a1deef1bfd5937e2abfbe9afef7b1ef;hp=bb6334c47dd3ca5d8e22d286145b931f4a60e33d;hpb=0003ea2c3dbaa7e22f4f616539136821d80694b8;p=libguestfs.git diff --git a/fish/copy.c b/fish/copy.c index bb6334c..2aa7c0a 100644 --- a/fish/copy.c +++ b/fish/copy.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -33,7 +34,7 @@ static int make_tar_output (const char *local, const char *basename); static int split_path (char *buf, size_t buf_size, const char *path, const char **dirname, const char **basename); int -run_copy_in (const char *cmd, int argc, char *argv[]) +run_copy_in (const char *cmd, size_t argc, char *argv[]) { if (argc < 2) { fprintf (stderr, @@ -176,7 +177,7 @@ tar_create (const char *dir, const char *path) } int -run_copy_out (const char *cmd, int argc, char *argv[]) +run_copy_out (const char *cmd, size_t argc, char *argv[]) { if (argc < 2) { fprintf (stderr, @@ -191,7 +192,7 @@ run_copy_out (const char *cmd, int argc, char *argv[]) struct stat statbuf; if (stat (local, &statbuf) == -1 || ! (S_ISDIR (statbuf.st_mode))) { - fprintf (stderr, _("copy-in: target '%s' is not a directory\n"), local); + fprintf (stderr, _("copy-out: target '%s' is not a directory\n"), local); return -1; }