summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-11 11:24:47 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-11 11:24:47 +0200
commite57bc2d5de7622313e3f5f151310c35fa90c191b (patch)
treea2500a60137a92e18e70dd5be6a61ca986d7a016 /util
parentec09ef3933fecbe5b6969c257ee42ce8841e4d64 (diff)
parentc71bf8390b9a06fa498d2cb4f8a4924309f4875e (diff)
Update upstream source from tag 'upstream/3.1.6'
Update to upstream version '3.1.6' with Debian dir 52c1d1e5c413a97655e5877a16e2ec40df1ae2a9
Diffstat (limited to 'util')
-rw-r--r--util/iconfig.c2
-rw-r--r--util/ievents.c2
-rw-r--r--util/ipmiutil.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/util/iconfig.c b/util/iconfig.c
index 25e0c67..49d690f 100644
--- a/util/iconfig.c
+++ b/util/iconfig.c
@@ -2681,7 +2681,7 @@ main(int argc, char **argv)
} /*endif not readonly*/
do_exit:
- if (fd_bmc != stdout) fclose(fd_bmc);
+ if (fd_bmc != NULL && fd_bmc != stdout) fclose(fd_bmc);
ipmi_close_();
if (nerrs > 0) {
printf("Warning: %d ok, %d errors occurred, last error = %d\n",ngood,nerrs,lasterr);
diff --git a/util/ievents.c b/util/ievents.c
index c384b59..bf8f7fb 100644
--- a/util/ievents.c
+++ b/util/ievents.c
@@ -80,7 +80,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern char *progver; /*from ipmiutil.c*/
static char * progname = "ipmiutil events";
#else
-static char *progver = "3.15";
+static char *progver = "3.16";
static char *progname = "ievents";
#endif
static char fsensdesc = 0; /* 1= get extended sensor descriptions*/
diff --git a/util/ipmiutil.c b/util/ipmiutil.c
index 82c7506..9d3a3dc 100644
--- a/util/ipmiutil.c
+++ b/util/ipmiutil.c
@@ -57,7 +57,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ipmiutil.h"
static char *progname = "ipmiutil";
-char *progver = "3.15";
+char *progver = "3.16";
// static char fdebug = 0;
/*int ipmiutil(int argc, char **argv); */
@@ -215,6 +215,7 @@ main(int argc, char **argv)
} else
#endif
{
+ printf("%s ver %s\n", progname,progver);
show_usage();
ret = ERR_USAGE;
}