1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 19:36:45 +02:00

Fixed some warnings.

This commit is contained in:
irungentoo
2013-08-24 19:16:43 -04:00
parent c628517474
commit e6a13feae8
3 changed files with 10 additions and 7 deletions

View File

@ -32,6 +32,9 @@
#include "prompt.h"
#include "friendlist.h"
#ifndef PACKAGE_DATADIR
#define PACKAGE_DATADIR "."
#endif
/* Export for use in Callbacks */
char *DATA_FILE = NULL;
char *SRVLIST_FILE = NULL;
@ -291,7 +294,7 @@ static void load_data(Tox *m, char *path)
tox_load(m, buf, len);
uint32_t i;
uint32_t i = 0;
char name[TOX_MAX_NAME_LENGTH];
while (tox_getname(m, i, (uint8_t *)name) != -1) {