From 83112c588af46232af4be74ee69a133be199110b Mon Sep 17 00:00:00 2001 From: Robert Sutton Date: Wed, 7 Aug 2013 13:30:14 -0400 Subject: Fix incompatible pointer type warning by changing type of print_statuschange to match parameter of userstatus callback. --- testing/nTox_win32.c | 2 +- testing/nTox_win32.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testing') diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c index 007305ad..e4489f13 100644 --- a/testing/nTox_win32.c +++ b/testing/nTox_win32.c @@ -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); diff --git a/testing/nTox_win32.h b/testing/nTox_win32.h index 271403b8..36d5df1f 100644 --- a/testing/nTox_win32.h +++ b/testing/nTox_win32.h @@ -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 \ No newline at end of file +#endif -- cgit v1.2.3