Commit c360845d authored by Mike Frysinger's avatar Mike Frysinger

always write --version output to stdout

Since the user requested --version explicitly, it's not an error to
display this, so make sure all the utils write to stdout (since half
were already doing so).
Signed-off-by: 's avatarMike Frysinger <vapier@gentoo.org>
parent 479bb4a7
......@@ -623,7 +623,7 @@ static int arp_show(char *name)
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Release, Features);
printf("%s\n%s\n", Release, Features);
exit(E_VERSION);
}
......
......@@ -254,7 +254,7 @@ static void setfilename(char *name, int what)
static void version(void)
{
fprintf(stderr, "%s\n", Release);
printf("%s\n", Release);
exit(E_VERSION);
}
......
......@@ -233,7 +233,7 @@ static void usage(void)
static void version(void)
{
fprintf(stderr, "%s\n", Release);
printf("%s\n", Release);
exit(E_VERSION);
}
......
......@@ -469,7 +469,7 @@ const char *usage =
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Release, Signature);
printf("%s\n%s\n", Release, Signature);
exit(E_VERSION);
}
......
......@@ -227,7 +227,7 @@ int main(int argc, char **argv)
case 'h':
usage();
case 'V':
fprintf(stderr, "%s\n", Release);
printf("%s\n", Release);
exit(E_VERSION);
break;
case 'v':
......
......@@ -99,7 +99,7 @@ static void usage(int rc)
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Release, Features);
printf("%s\n%s\n", Release, Features);
exit(E_VERSION);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment