Fix incompatible pointer type warning by changing type of print_statuschange to match parameter of userstatus callback.

This commit is contained in:
Robert Sutton 2013-08-07 13:30:14 -04:00
parent a102fa7cb0
commit 83112c588a
2 changed files with 3 additions and 3 deletions

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