From cba04d006283b68a888fa1db1613e102fce2f341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 20 Nov 2014 11:05:05 +0100 Subject: [PATCH] Fixed some type warnings. --- src/twc-bootstrap.c | 4 ++-- src/twc-commands.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/twc-bootstrap.c b/src/twc-bootstrap.c index cdf9597..d5a4b21 100644 --- a/src/twc-bootstrap.c +++ b/src/twc-bootstrap.c @@ -68,11 +68,11 @@ int twc_bootstrap_tox(Tox *tox, const char *address, uint16_t port, const char *public_key) { - char binary_key[TOX_FRIEND_ADDRESS_SIZE]; + uint8_t binary_key[TOX_FRIEND_ADDRESS_SIZE]; twc_hex2bin(public_key, TOX_FRIEND_ADDRESS_SIZE, binary_key); int result = tox_bootstrap_from_address(tox, address, port, - (uint8_t *)binary_key); + binary_key); return result; } diff --git a/src/twc-commands.c b/src/twc-commands.c index 5fe2f7c..409bce4 100644 --- a/src/twc-commands.c +++ b/src/twc-commands.c @@ -294,7 +294,7 @@ twc_cmd_friend(void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_OK; } - char address[TOX_FRIEND_ADDRESS_SIZE]; + uint8_t address[TOX_FRIEND_ADDRESS_SIZE]; twc_hex2bin(hex_id, TOX_FRIEND_ADDRESS_SIZE, address); if (force)