mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
initialize num_requests
This commit is contained in:
parent
207c067cf2
commit
17e64b3ee5
|
@ -38,7 +38,7 @@ char line[STRING_LENGTH];
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
uint8_t pending_requests[256][CLIENT_ID_SIZE];
|
uint8_t pending_requests[256][CLIENT_ID_SIZE];
|
||||||
uint8_t num_requests;
|
uint8_t num_requests = 0;
|
||||||
|
|
||||||
void new_lines(char *line)
|
void new_lines(char *line)
|
||||||
{
|
{
|
||||||
|
@ -57,6 +57,7 @@ void print_friendlist()
|
||||||
new_lines("[i] Friend List:");
|
new_lines("[i] Friend List:");
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
for (i = 0; i <= num_requests; i++) {
|
for (i = 0; i <= num_requests; i++) {
|
||||||
|
printf ("num_resusts: %d\n", num_requests);
|
||||||
char fstring[128];
|
char fstring[128];
|
||||||
|
|
||||||
getname(i, (uint8_t*)name);
|
getname(i, (uint8_t*)name);
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|
||||||
uint8_t pending_requests[256][CLIENT_ID_SIZE];
|
uint8_t pending_requests[256][CLIENT_ID_SIZE];
|
||||||
uint8_t num_requests;
|
uint8_t num_requests = 0;
|
||||||
|
|
||||||
char line[STRING_LENGTH];
|
char line[STRING_LENGTH];
|
||||||
char users_id[200];
|
char users_id[200];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user