提交 d0cbc156 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Tools: hv: Correctly type string variables

Correctly type character strings.
Reported-by: NBen Hutchings <ben@decadent.org.uk>
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 00b83355
......@@ -86,8 +86,8 @@ static struct utsname uts_buf;
#define ENTRIES_PER_BLOCK 50
struct kvp_record {
__u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
__u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];
char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];
};
struct kvp_file_state {
......@@ -95,7 +95,7 @@ struct kvp_file_state {
int num_blocks;
struct kvp_record *records;
int num_records;
__u8 fname[MAX_FILE_NAME];
char fname[MAX_FILE_NAME];
};
static struct kvp_file_state kvp_file_info[KVP_POOL_COUNT];
......@@ -199,7 +199,7 @@ static int kvp_file_init(void)
int fd;
FILE *filep;
size_t records_read;
__u8 *fname;
char *fname;
struct kvp_record *record;
struct kvp_record *readp;
int num_blocks;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册