X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fcopy.c;h=2aa7c0a11ab0938fdc6fc6ecb0d896a3affa0039;hb=2e4669d6e7053b0347b265d4f330e8873525bd3e;hp=5a451a5bafd9bc16e6d9b1fa78ab2e5c1ecc2e2a;hpb=b1e65806a185c6b2ec36efc04d85c268a65e97cc;p=libguestfs.git diff --git a/fish/copy.c b/fish/copy.c index 5a451a5..2aa7c0a 100644 --- a/fish/copy.c +++ b/fish/copy.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -34,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 -do_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, @@ -177,7 +177,7 @@ tar_create (const char *dir, const char *path) } int -do_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, @@ -192,7 +192,7 @@ do_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; }