mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
This commit is contained in:
commit
81fccf68d6
|
@ -51,6 +51,7 @@ unsigned char * hex_string_to_bin(char hex_string[]);
|
|||
DEBUG_PRINT(__VA_ARGS__, ' '); \
|
||||
} while (0)
|
||||
|
||||
#undef ERROR
|
||||
#define ERROR(exit_status, ...) do { \
|
||||
fprintf(stderr, "error in "); \
|
||||
DEBUG_PRINT(__VA_ARGS__, ' '); \
|
||||
|
@ -58,6 +59,7 @@ unsigned char * hex_string_to_bin(char hex_string[]);
|
|||
} while (0)
|
||||
#else
|
||||
#define WARNING(...)
|
||||
#undef ERROR
|
||||
#define ERROR(...)
|
||||
#endif // DEBUG
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ void print_nickchange(int friendnumber, uint8_t *string, uint16_t length)
|
|||
printf(msg);
|
||||
}
|
||||
|
||||
void print_statuschange(int friendnumber, uint8_t *string, uint16_t length)
|
||||
void print_statuschange(int friendnumber,USERSTATUS_KIND kind, uint8_t *string, uint16_t length)
|
||||
{
|
||||
char name[MAX_NAME_LENGTH];
|
||||
getname(friendnumber, (uint8_t*)name);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
void do_header();
|
||||
void print_message(int friendnumber, uint8_t * string, uint16_t length);
|
||||
void print_nickchange(int friendnumber, uint8_t *string, uint16_t length);
|
||||
void print_statuschange(int friendnumber, uint8_t *string, uint16_t length);
|
||||
void print_statuschange(int friendnumber,USERSTATUS_KIND kind, uint8_t *string, uint16_t length);
|
||||
void load_key();
|
||||
void add_friend();
|
||||
void list_friends();
|
||||
|
@ -44,4 +44,4 @@ void accept_friend_request();
|
|||
void line_eval(char* line);
|
||||
void get_input();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user