change valstr to use 16bit integer

This commit is contained in:
Duncan Laurie 2004-01-06 23:02:40 +00:00
parent 45d8b901de
commit b39d7a2015
2 changed files with 3 additions and 3 deletions

View File

@ -38,10 +38,10 @@
#define IPMI_HELPER_H
struct valstr {
unsigned char val;
unsigned short val;
const char * str;
};
const char * val2str(unsigned char val, const struct valstr * vs);
const char * val2str(unsigned short val, const struct valstr * vs);
unsigned short buf2short(unsigned char * buf);
unsigned long buf2long(unsigned char * buf);

View File

@ -86,7 +86,7 @@ void printbuf(unsigned char * buf, int len, char * desc)
printf("\n");
}
const char * val2str(unsigned char val, const struct valstr *vs)
const char * val2str(unsigned short val, const struct valstr *vs)
{
static char un_str[16];
int i = 0;