diff options
author | sin <sin@2f30.org> | 2014-09-15 16:03:14 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-15 16:03:14 +0100 |
commit | 901be06b01f63b14875680c405d59ec613d22c65 (patch) | |
tree | a0d2b001a955986fa0b040cf0d8f61b3ea7951b5 | |
parent | 8aa4334c12667b70042de40111a50b3311920952 (diff) |
Fix more warnings
-rw-r--r-- | ratatox.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -457,7 +457,7 @@ friendcreate(int32_t fid) exit(EXIT_FAILURE); } - r = tox_get_name(tox, fid, f->namestr); + r = tox_get_name(tox, fid, (uint8_t *)f->namestr); if (r < 0) { fprintf(stderr, "tox_get_name() on fid %d failed\n", fid); exit(EXIT_FAILURE); @@ -580,7 +580,7 @@ dofriend(char *cmd, size_t sz) { char *args[2]; uint8_t id[TOX_FRIEND_ADDRESS_SIZE]; - char *msgstr = "ratatox is awesome!"; + uint8_t msgstr[] = "ratatox is awesome!"; int r; r = tokenize(cmd, args, 2); @@ -632,8 +632,8 @@ static int doname(char *cmd, size_t sz) { char *args[2]; - char name[TOX_MAX_NAME_LENGTH + 1]; - uint8_t len; + uint8_t name[TOX_MAX_NAME_LENGTH + 1]; + uint16_t len; int r; r = tokenize(cmd, args, 2); @@ -643,7 +643,7 @@ doname(char *cmd, size_t sz) name[len] = '\0'; printf("%s\n", name); } else { - tox_set_name(tox, args[1], strlen(args[1])); + tox_set_name(tox, (uint8_t *)args[1], strlen(args[1])); datasave(); } |