Skip to content

Commit

Permalink
Tools: hv: Correctly type string variables
Browse files Browse the repository at this point in the history
Correctly type character strings.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 00b8335 commit d0cbc15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/hv/hv_kvp_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ 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 {
int fd;
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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d0cbc15

Please sign in to comment.