diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-09-04 17:46:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-04 18:55:35 -0400 |
commit | d0cbc156a7689348e56ac9b871c988b59b9f9ff0 (patch) | |
tree | ac08cca6142fe369ad6192c3c0f1c114736b8608 /tools/hv | |
parent | 00b8335517b50b716960377b63a9ae63ed72322c (diff) |
Tools: hv: Correctly type string variables
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>
Diffstat (limited to 'tools/hv')
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index d12d71448f0c..026bf0e5d180 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -86,8 +86,8 @@ static struct utsname uts_buf; | |||
86 | #define ENTRIES_PER_BLOCK 50 | 86 | #define ENTRIES_PER_BLOCK 50 |
87 | 87 | ||
88 | struct kvp_record { | 88 | struct kvp_record { |
89 | __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; | 89 | char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; |
90 | __u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; | 90 | char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; |
91 | }; | 91 | }; |
92 | 92 | ||
93 | struct kvp_file_state { | 93 | struct kvp_file_state { |
@@ -95,7 +95,7 @@ struct kvp_file_state { | |||
95 | int num_blocks; | 95 | int num_blocks; |
96 | struct kvp_record *records; | 96 | struct kvp_record *records; |
97 | int num_records; | 97 | int num_records; |
98 | __u8 fname[MAX_FILE_NAME]; | 98 | char fname[MAX_FILE_NAME]; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | static struct kvp_file_state kvp_file_info[KVP_POOL_COUNT]; | 101 | static struct kvp_file_state kvp_file_info[KVP_POOL_COUNT]; |
@@ -199,7 +199,7 @@ static int kvp_file_init(void) | |||
199 | int fd; | 199 | int fd; |
200 | FILE *filep; | 200 | FILE *filep; |
201 | size_t records_read; | 201 | size_t records_read; |
202 | __u8 *fname; | 202 | char *fname; |
203 | struct kvp_record *record; | 203 | struct kvp_record *record; |
204 | struct kvp_record *readp; | 204 | struct kvp_record *readp; |
205 | int num_blocks; | 205 | int num_blocks; |