pidgin: 2ed7f578: Avoid these two compile warnings by usin...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Nov 23 03:00:47 EST 2009


-----------------------------------------------------------------
Revision: 2ed7f578f539ef55ba7158bcaec0cec47c72fd02
Ancestor: a48f2180d9b5751c50f6a5177a903328563ed727
Author: markdoliner at pidgin.im
Date: 2009-11-23T07:57:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2ed7f578f539ef55ba7158bcaec0cec47c72fd02

Modified files:
        libpurple/protocols/mxit/mxit.c
        libpurple/protocols/mxit/mxit.h
        libpurple/protocols/mxit/splashscreen.h

ChangeLog: 

Avoid these two compile warnings by using more specific function signatures:
mxit.c:128: warning: no previous prototype for 'mxit_register_uri_handler'
splashscreen.c:61: warning: no previous prototype for 'splash_popup_enabled'

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/mxit.c	cf26abf7a9ae90d254296872b794bca1c59d3bae
+++ libpurple/protocols/mxit/mxit.c	dcefb6a3fa94eb2636fb6e32016dd6d2692355f1
@@ -125,7 +125,7 @@ skip:
 /*------------------------------------------------------------------------
  * Register MXit to receive URI click notifications from the UI
  */
-void mxit_register_uri_handler()
+void mxit_register_uri_handler(void)
 {
 	not_link_ref_count++;
 	if ( not_link_ref_count == 1 ) {
============================================================
--- libpurple/protocols/mxit/mxit.h	8bbb03fd00b0bd3bd213a82402594e48ab78d4cf
+++ libpurple/protocols/mxit/mxit.h	bc265e18cb9c4f1c962d03295b3f4ba59e6dd3e9
@@ -182,7 +182,7 @@ void mxit_enable_signals( struct MXitSes
 void mxit_enable_signals( struct MXitSession* session );
 
 #ifdef	MXIT_LINK_CLICK
-void mxit_register_uri_handler();
+void mxit_register_uri_handler(void);
 #endif
 
 
============================================================
--- libpurple/protocols/mxit/splashscreen.h	0351c0cf7122180c36e893fb7205fefb617722db
+++ libpurple/protocols/mxit/splashscreen.h	d35e1a7eb357e251b83002fdfc388f44f66e0911
@@ -39,7 +39,7 @@ const char* splash_current(struct MXitSe
 /*
  * Indicate if splash-screen popups are enabled.
  */
-gboolean splash_popup_enabled();
+gboolean splash_popup_enabled(struct MXitSession* session);
 
 /*
  * Save a new splash-screen.


More information about the Commits mailing list