Signed-off-by: Jens Osterkamp <[email protected]>
---
 include/lldp_evb_clif.h |    2 +-
 lldp_evb_clif.c         |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/lldp_evb_clif.h b/include/lldp_evb_clif.h
index 43083f3..6f3ac99 100644
--- a/include/lldp_evb_clif.h
+++ b/include/lldp_evb_clif.h
@@ -28,7 +28,7 @@
 
 struct lldp_module *evb_cli_register(void);
 void evb_cli_unregister(struct lldp_module *);
-int evb_print_tlv(u32, u16, u8 *);
+int evb_print_tlv(u32, u16, char *);
 
 #define EVB_BUF_SIZE           256
 
diff --git a/lldp_evb_clif.c b/lldp_evb_clif.c
index 383b717..7479d74 100644
--- a/lldp_evb_clif.c
+++ b/lldp_evb_clif.c
@@ -169,13 +169,13 @@ void evb_print_cfg_tlv(u16 len, char *info)
                printf("Unable to decode ccap !\n");
        }
 
-       if (!hexstr2bin(info+8, (u16 *)&svsi, sizeof(svsi))) {
+       if (!hexstr2bin(info+8, (u8 *)&svsi, sizeof(svsi))) {
                printf("\tno. of supported VSIs: %04i\n",svsi);
        } else {
                printf("Unable to decode svsi !\n");
        }
 
-       if (!hexstr2bin(info+12, (u16 *)&cvsi, sizeof(cvsi))) {
+       if (!hexstr2bin(info+12, (u8 *)&cvsi, sizeof(cvsi))) {
                printf("\tno. of configured VSIs: %04i\n",cvsi);
        } else {
                printf("Unable to decode cvsi !\n");
@@ -193,7 +193,7 @@ void evb_print_cfg_tlv(u16 len, char *info)
 /* return 1: if it printed the TLV
  *        0: if it did not
  */
-int evb_print_tlv(u32 tlvid, u16 len, u8 *info)
+int evb_print_tlv(u32 tlvid, u16 len, char *info)
 {
        struct type_name_info *tn = &evb_tlv_names[0];
 
-- 
1.7.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/virtualization

Reply via email to