This commit is contained in:
irungentoo 2013-08-07 18:23:26 -04:00
commit 81fccf68d6
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);

View File

@ -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