Commit 0727f6ef authored by Bernd Eckenfels's avatar Bernd Eckenfels

Removed per-file version number

parent a773411c
......@@ -80,7 +80,7 @@
#define FEATURE_ARP
#include "lib/net-features.h"
char *Release = RELEASE, *Version = "arp 1.88 (2001-04-04)";
static char *Release = RELEASE;
int opt_n = 0; /* do not resolve addresses */
int opt_N = 0; /* use symbolic names */
......@@ -617,7 +617,7 @@ static int arp_show(char *name)
static void version(void)
{
fprintf(stderr, "%s\n%s\n%s\n", Release, Version, Features);
fprintf(stderr, "%s\n%s\n", Release, Features);
exit(E_VERSION);
}
......
......@@ -54,7 +54,7 @@
#include <netdnet/dn.h>
#endif
char *Release = RELEASE, *Version = "hostname 1.100 (2001-04-14)";
static char *Release = RELEASE;
static char *program_name;
static int opt_v;
......@@ -266,7 +266,7 @@ static void setfilename(char *name, int what)
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Release, Version);
fprintf(stderr, "%s\n", Release);
exit(E_VERSION);
}
......
......@@ -85,7 +85,7 @@ struct in6_ifreq {
#include "sockets.h"
#include "util.h"
char *Release = RELEASE, *Version = "ifconfig 1.42 (2001-04-13)";
static char *Release = RELEASE;
int opt_a = 0; /* show all interfaces */
int opt_v = 0; /* debugging output flag */
......@@ -235,7 +235,7 @@ static void usage(void)
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Release, Version);
fprintf(stderr, "%s\n", Release);
exit(E_VERSION);
}
......
......@@ -45,13 +45,11 @@ int filter_family;
#define NEWADDR 1
#define DELADDR 2
char *Release = RELEASE,
*Version = "ipmaddr 1.1",
*Signature = "Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>";
static char *Release = RELEASE, *Signature = "Alexey Kuznetsov";
static void version(void)
{
printf("%s\n%s\n%s\n", Release, Version, Signature);
printf("%s\n%s\n", Release, Signature);
exit(E_VERSION);
}
......
......@@ -68,13 +68,11 @@
#include "util-ank.h"
char *Release = RELEASE,
*Version = "iptunnel 1.01",
*Signature = "Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>";
static char *Release = RELEASE, *Signature = "Alexey Kuznetsov";
static void version(void)
{
printf("%s\n%s\n%s\n", Release, Version, Signature);
printf("%s\n%s\n", Release, Signature);
exit(E_VERSION);
}
......
......@@ -29,7 +29,6 @@
http://www.national.com/pf/DP/DP83840.html
*/
static char Version[] = "$Id: mii-tool.c,v 1.9 2006/09/27 20:59:18 ecki Exp $\n(Author: David Hinds based on Donald Becker's mii-diag)";
#include <unistd.h>
#include <stdlib.h>
......@@ -56,6 +55,8 @@ static char Version[] = "$Id: mii-tool.c,v 1.9 2006/09/27 20:59:18 ecki Exp $\n(
#include "version.h"
#include "net-support.h"
static char *Release = RELEASE, *Signature = "David Hinds based on Donald Becker's mii-diag";
#define MAX_ETH 8 /* Maximum # of interfaces */
#define LPA_ABILITY_MASK 0x07e0
......@@ -458,7 +459,7 @@ const char *usage =
static void version(void)
{
fprintf(stderr, "%s\n%s\n", Version, RELEASE);
fprintf(stderr, "%s\n%s\n", Release, Signature);
exit(E_VERSION);
}
......
......@@ -136,7 +136,7 @@ typedef enum {
#define FEATURE_NETSTAT
#include "lib/net-features.h"
char *Release = RELEASE, *Version = "netstat 1.42 (2001-04-15)", *Signature = "Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang, Brian Micek and others";
static char *Release = RELEASE, *Signature = "Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang, Brian Micek and others";
#define E_READ -1
......@@ -1814,7 +1814,7 @@ static int iface_info(void)
static void version(void)
{
printf("%s\n%s\n%s\n%s\n", Release, Version, Signature, Features);
printf("%s\n%s\n%s\n", Release, Signature, Features);
exit(E_VERSION);
}
......
......@@ -48,13 +48,11 @@ int skfd = -1;
struct ifreq ifr;
struct plipconf *plip;
char *Release = RELEASE,
*Version = "plipconfig 0.2",
*Signature = "John Paul Morrison, Alan Cox et al.";
static char *Release = RELEASE, *Signature = "John Paul Morrison, Alan Cox et al.";
static void version(void)
{
printf("%s\n%s\n%s\n", Release, Version, Signature);
printf("%s\n%s\n", Release, Signature);
exit(E_VERSION);
}
......
......@@ -44,7 +44,7 @@
static char no_rarp_message[] = N_("This kernel does not support RARP.\n");
static char version_string[] = RELEASE "\nrarp 1.03 (2001-04-04)\n";
static char *Release = RELEASE;
static struct hwtype *hardware = NULL;
......@@ -226,7 +226,7 @@ int main(int argc, char **argv)
case 'h':
usage();
case 'V':
fputs(version_string, stderr);
fprintf(stderr, "%s\n", Release);
exit(E_VERSION);
break;
case 'v':
......
......@@ -66,7 +66,7 @@
#define FEATURE_ROUTE
#include "lib/net-features.h" /* needs some of the system includes above! */
char *Release = RELEASE, *Version = "route 1.98 (2001-04-15)";
static char *Release = RELEASE;
int opt_n = 0; /* numerical output flag */
int opt_v = 0; /* debugging output flag */
......@@ -98,7 +98,7 @@ static void usage(void)
static void version(void)
{
fprintf(stderr, "%s\n%s\n%s\n", Release, Version, Features);
fprintf(stderr, "%s\n%s\n", Release, Features);
exit(E_VERSION);
}
......
......@@ -75,9 +75,7 @@
#define DEF_PROTO "cslip"
const char *Release = RELEASE,
*Version = "$Id: slattach.c,v 1.12 2009/09/06 22:59:43 vapier Exp $",
*Signature = "net-tools, Fred N. van Kempen et al.";
static char *Release = RELEASE, *Signature = "Fred N. van Kempen et al.";
struct {
......@@ -602,7 +600,7 @@ usage(void)
static void
version(void)
{
printf("%s\n%s\n%s\n", Release, Version, Signature);
printf("%s\n%s\n", Release, Signature);
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