diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 10:22:52 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 10:22:52 +0200 |
commit | ed721d01939a81a2ebf1b240a029ace82ee953df (patch) | |
tree | d5acb063b3dc1d6734b8aa221cf93017a38c22e5 /util/ifruset.c | |
parent | 7a765f655540e4e254f4aaaf6ea3326a57d76e59 (diff) | |
parent | 1d271f6ff272623c990d1cebe531002f22b248bd (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'util/ifruset.c')
-rw-r--r-- | util/ifruset.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/ifruset.c b/util/ifruset.c index 0a9ac00..fbde21e 100644 --- a/util/ifruset.c +++ b/util/ifruset.c @@ -105,8 +105,13 @@ extern void fmt_time(time_t etime, char *buf, int bufsz); /*see ievents.c*/ #define IPROD_FRUID 6 #define IPROD_OEM 7 +#ifdef METACOMMAND +extern char * progver; /*from ipmiutil.c*/ +static char *progname = "ipmiutil fruset"; +#else +static char * progver = "3.08"; static char *progname = "ifruset"; -static char *progver = "3.08"; +#endif static char fdebug = 0; static char fpicmg = 0; static char fonlybase = 0; @@ -1215,7 +1220,7 @@ main(int argc, char **argv) char *s1; FILE *fp; - printf("%s: version %s\n",progname,progver); + printf("%s version %s\n",progname,progver); parse_lan_options('V',"4",0); /*request admin priv by default*/ while ( (c = getopt( argc, argv,"a:bcd:h:i:f:m:n:o:p:r:s:u:v:xyz:T:V:J:EYF:P:N:R:U:Z:?")) != EOF ) switch(c) { |