diff options
author | FRIGN <dev@frign.de> | 2014-09-17 23:09:49 +0200 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-17 23:28:32 +0100 |
commit | 184804c60c2112538fa3adbe8e4d06c1bdcb29e7 (patch) | |
tree | 96aa53824cef3cfea84710c47852ea65f5f7665c /ratox.c | |
parent | e0cd01eef6b8f2d83e2ca3f4d87b015f2305b7db (diff) |
Fix wall of gcc-warnings
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -965,7 +965,7 @@ sendfriendreq(void *data) { char *p; uint8_t id[TOX_FRIEND_ADDRESS_SIZE]; - uint8_t buf[BUFSIZ], *msg = "ratox is awesome!"; + char buf[BUFSIZ], *msg = "ratox is awesome!"; int r; again: @@ -993,7 +993,7 @@ again: } str2id(buf, id); - r = tox_add_friend(tox, id, buf, strlen(buf)); + r = tox_add_friend(tox, id, (uint8_t *)buf, strlen(buf)); if (r < 0) ftruncate(gslots[REQUEST].fd[ERR], 0); switch (r) { |