summaryrefslogtreecommitdiff
path: root/util/isensor.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 10:13:09 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 10:13:09 +0200
commitfc806628dbeecd34f41b2f6d04290631dca3955e (patch)
treee9ee96c4b97b1ca9b9f100eae402185859f6539b /util/isensor.c
parentd5cdf594f2678cf690b802fbf4eb687dd9d98c4f (diff)
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'util/isensor.c')
-rw-r--r--util/isensor.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/util/isensor.c b/util/isensor.c
index 286b19d..f140cdc 100644
--- a/util/isensor.c
+++ b/util/isensor.c
@@ -254,8 +254,13 @@ char *decode_entity_id(int id) {
/************************
* Global Data
************************/
-static char *progname = "isensor";
-static char *progver = "3.08";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil sensor";
+#else
+static char * progver = "3.08";
+static char * progname = "isensor";
+#endif
#ifdef WIN32
static char savefile[] = "%ipmiutildir%\\thresholds.cmd";
#else
@@ -3247,7 +3252,7 @@ int i_sensor(int argc, char **argv)
char *p;
char *s1;
- printf("%s: version %s\n",progname,progver);
+ printf("%s version %s\n",progname,progver);
while ( (c = getopt( argc, argv,"a:bcd:ef:g:h:i:j:k:l:m:n:opqrstu:vwxT:V:J:L:EYF:P:N:R:U:Z:?")) != EOF )
switch(c) {