diff options
author | Tomas Hozza <thozza@redhat.com> | 2012-11-09 09:01:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-15 18:39:59 -0500 |
commit | d892de8d3fb1e807de561289cfb1fed42950440a (patch) | |
tree | c56ef98b4c6910aa4608ab2edd8b719b4ede5421 /tools/hv | |
parent | 95a69adab9acfc3981c504737a2b6578e4d846ef (diff) |
tools/hv: Fix string types
Initial patch by Ben Hutchings <ben@decadent.org.uk>
Standard C strings are arrays of char, not __u8 (unsigned char).
Declare variables and parameters accordingly, and add the necessary
casts.
Signed-off-by: Tomas Hozza <thozza@redhat.com>
Acked-by: K. Y. Srinivasan <kys@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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index c1d910243d49..d25a46925e61 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -299,7 +299,7 @@ static int kvp_file_init(void) | |||
299 | return 0; | 299 | return 0; |
300 | } | 300 | } |
301 | 301 | ||
302 | static int kvp_key_delete(int pool, __u8 *key, int key_size) | 302 | static int kvp_key_delete(int pool, const char *key, int key_size) |
303 | { | 303 | { |
304 | int i; | 304 | int i; |
305 | int j, k; | 305 | int j, k; |
@@ -342,7 +342,7 @@ static int kvp_key_delete(int pool, __u8 *key, int key_size) | |||
342 | return 1; | 342 | return 1; |
343 | } | 343 | } |
344 | 344 | ||
345 | static int kvp_key_add_or_modify(int pool, __u8 *key, int key_size, __u8 *value, | 345 | static int kvp_key_add_or_modify(int pool, const char *key, int key_size, const char *value, |
346 | int value_size) | 346 | int value_size) |
347 | { | 347 | { |
348 | int i; | 348 | int i; |
@@ -396,7 +396,7 @@ static int kvp_key_add_or_modify(int pool, __u8 *key, int key_size, __u8 *value, | |||
396 | return 0; | 396 | return 0; |
397 | } | 397 | } |
398 | 398 | ||
399 | static int kvp_get_value(int pool, __u8 *key, int key_size, __u8 *value, | 399 | static int kvp_get_value(int pool, const char *key, int key_size, char *value, |
400 | int value_size) | 400 | int value_size) |
401 | { | 401 | { |
402 | int i; | 402 | int i; |
@@ -428,8 +428,8 @@ static int kvp_get_value(int pool, __u8 *key, int key_size, __u8 *value, | |||
428 | return 1; | 428 | return 1; |
429 | } | 429 | } |
430 | 430 | ||
431 | static int kvp_pool_enumerate(int pool, int index, __u8 *key, int key_size, | 431 | static int kvp_pool_enumerate(int pool, int index, char *key, int key_size, |
432 | __u8 *value, int value_size) | 432 | char *value, int value_size) |
433 | { | 433 | { |
434 | struct kvp_record *record; | 434 | struct kvp_record *record; |
435 | 435 | ||