X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ffish.c;h=265464e70b0a3f13ebe6b6013941fb75623c8c67;hb=a6bfc9f3c44c6b4421d5a7b1d872411583a5cffa;hp=c1dbfb4d5de8c3bc4a5326c588f8230e08a3fdc9;hpb=70faafe8d4f0c06c3e62c1e1469289255ee30c53;p=libguestfs.git diff --git a/fish/fish.c b/fish/fish.c index c1dbfb4..265464e 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -224,7 +224,7 @@ main (int argc, char *argv[]) * getopt_long uses argv[0], so give it the sanitized name. Save a copy * of the original, in case it's needed below. */ - char *real_argv0 = argv[0]; + //char *real_argv0 = argv[0]; argv[0] = bad_cast (program_name); for (;;) { @@ -531,24 +531,6 @@ set_up_terminal (void) have_terminfo = 1; } -void -pod2text (const char *name, const char *shortdesc, const char *str) -{ - FILE *fp; - - fp = popen ("pod2text", "w"); - if (fp == NULL) { - /* pod2text failed, maybe not found, so let's just print the - * source instead, since that's better than doing nothing. - */ - printf ("%s - %s\n\n%s\n", name, shortdesc, str); - return; - } - fprintf (fp, "=head1 NAME\n\n%s - %s\n\n", name, shortdesc); - fputs (str, fp); - pclose (fp); -} - static void prepare_drives (struct drv *drv) { @@ -872,7 +854,7 @@ issue_command (const char *cmd, char *argv[], const char *pipecmd) int argc; int stdout_saved_fd = -1; int pid = 0; - int i, r; + int r; reset_progress_bar ();