X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fedit.c;h=c72ad1d81872dc16c7b56bc3e6d27aef330fb8b6;hb=da8ddb2745c3d53c36e3ad7f09836a4c27a4d3e6;hp=c27f1009949a7f071bd1b9f71d0f3fe3c47821a5;hpb=05712b2457a44ee0f0020eced77db03c2aa419a1;p=libguestfs.git diff --git a/fish/edit.c b/fish/edit.c index c27f100..c72ad1d 100644 --- a/fish/edit.c +++ b/fish/edit.c @@ -29,24 +29,6 @@ /* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */ -static int -xwrite (int fd, const void *buf, size_t len) -{ - int r; - - while (len > 0) { - r = write (fd, buf, len); - if (r == -1) { - perror ("write"); - return -1; - } - buf += r; - len -= r; - } - - return 0; -} - static char * load_file (const char *filename, int *len_r) { @@ -101,7 +83,7 @@ do_edit (const char *cmd, int argc, char *argv[]) int r, fd, size; if (argc != 1) { - fprintf (stderr, "use '%s filename' to edit a file\n", cmd); + fprintf (stderr, _("use '%s filename' to edit a file\n"), cmd); return -1; }