summaryrefslogtreecommitdiff
path: root/util/ievents.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-08 23:32:28 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-08 23:32:28 +0200
commit55adddbc16f65732b57ab8585c47001fced91d77 (patch)
tree27e8239d48c8a6b353db356aff92ee4d225c0a0e /util/ievents.c
parentd3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (diff)
Imported Upstream version 2.9.9upstream/2.9.9
Diffstat (limited to 'util/ievents.c')
-rw-r--r--util/ievents.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/ievents.c b/util/ievents.c
index cc40318..6a34e16 100644
--- a/util/ievents.c
+++ b/util/ievents.c
@@ -76,7 +76,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define SELprintf printf
#define SMS_SA 0x41
#define SMI_SA 0x21
-static char *progver = "2.98";
+static char *progver = "2.99";
static char *progname = "ievents";
static char fsensdesc = 0; /* 1= get extended sensor descriptions*/
static char fcanonical = 0; /* 1= show canonical, delimited output*/
@@ -2221,7 +2221,7 @@ int decode_raw_sel(char *raw_file, int mode)
{
FILE *fp;
char buff[256];
- uchar msg[132];
+ char msg[132];
uchar hbuf[50];
int fvalid = 0;
int len, i;
@@ -2585,7 +2585,7 @@ int i_events(int argc, char **argv)
} else i++;
}
}
- decode_sel_entry(buf,msg,sizeof(msg));
+ decode_sel_entry(buf,(char *)msg,sizeof(msg));
printf("%s", evt_hdr); /*"RecId Date/Time_______*/
printf("%s", msg);
} else if (fnewevt) {
@@ -2598,7 +2598,7 @@ int i_events(int argc, char **argv)
if (fdebug) printf("decoding standard IPMI event bytes\n");
if (fdebug) dump_buf("IPMI event",buf,16,0);
set_sel_opts(2,0, NULL,fdebug,futc);
- rv = decode_sel_entry(buf,msg,sizeof(msg));
+ rv = decode_sel_entry(buf,(char *)msg,sizeof(msg));
/* show header for the event record */
printf("%s", evt_hdr); /*"RecId Date/Time_______*/
printf("%s", msg);