changeset 12412:a88ca6da0b38

[gaim-migrate @ 14719] Make some functions static. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 08 Dec 2005 21:00:39 +0000
parents 8c339d9f1bb4
children 0332daad85ae
files plugins/perl/common/Request.xs plugins/perl/common/Util.xs src/connection.c src/gtkimhtml.c src/gtkprefs.c src/idle.c src/protocols/novell/nmuser.c src/protocols/oscar/oscar.c src/protocols/oscar/rxhandlers.c src/protocols/oscar/ssi.c src/protocols/yahoo/yahoo_filexfer.c src/protocols/yahoo/yahoo_picture.c src/proxy.c
diffstat 13 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/common/Request.xs	Thu Dec 08 20:59:49 2005 +0000
+++ b/plugins/perl/common/Request.xs	Thu Dec 08 21:00:39 2005 +0000
@@ -27,7 +27,7 @@
 /* the perl sub's name in a GaimPerlRequestData		*/
 /*							*/
 /********************************************************/
-void gaim_perl_request_ok_cb(void * data, GaimRequestFields *fields) {
+static void gaim_perl_request_ok_cb(void * data, GaimRequestFields *fields) {
 
 	GaimPerlRequestData *gpr = (GaimPerlRequestData *)data;
 
@@ -47,7 +47,7 @@
 	LEAVE;
 }
 
-void gaim_perl_request_cancel_cb(void * data, GaimRequestFields *fields) {
+static void gaim_perl_request_cancel_cb(void * data, GaimRequestFields *fields) {
 
 	GaimPerlRequestData *gpr = (GaimPerlRequestData *)data;
 
--- a/plugins/perl/common/Util.xs	Thu Dec 08 20:59:49 2005 +0000
+++ b/plugins/perl/common/Util.xs	Thu Dec 08 21:00:39 2005 +0000
@@ -4,7 +4,7 @@
 	char *cb;
 } GaimPerlUrlData;
 
-void gaim_perl_util_url_cb(void *data, const char *url_data, size_t size) {
+static void gaim_perl_util_url_cb(void *data, const char *url_data, size_t size) {
         GaimPerlUrlData *gpr = (GaimPerlUrlData *)data;
         dSP;
         ENTER;
--- a/src/connection.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/connection.c	Thu Dec 08 21:00:39 2005 +0000
@@ -417,7 +417,7 @@
 		ops->notice(gc, text);
 }
 
-gboolean
+static gboolean
 gaim_connection_disconnect_cb(gpointer data)
 {
 	GaimAccount *account = data;
--- a/src/gtkimhtml.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/gtkimhtml.c	Thu Dec 08 21:00:39 2005 +0000
@@ -2233,7 +2233,7 @@
 
 /* returns if the beginning of the text is a protocol. If it is the protocol, returns the length so
    the caller knows how long the protocol string is. */
-int gtk_imhtml_is_protocol(const char *text)
+static int gtk_imhtml_is_protocol(const char *text)
 {
 	gint i;
 
--- a/src/gtkprefs.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/gtkprefs.c	Thu Dec 08 21:00:39 2005 +0000
@@ -577,7 +577,7 @@
 }
 
 /* Does same as normal sort, except "none" is sorted first */
-gint gaim_sort_smileys (GtkTreeModel	*model,
+static gint gaim_sort_smileys (GtkTreeModel	*model,
 						GtkTreeIter		*a,
 						GtkTreeIter		*b,
 						gpointer		userdata)
--- a/src/idle.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/idle.c	Thu Dec 08 21:00:39 2005 +0000
@@ -251,7 +251,7 @@
 	return idle_ui_ops;
 }
 
-void *
+static void *
 gaim_idle_get_handle()
 {
 	static int handle;
--- a/src/protocols/novell/nmuser.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/novell/nmuser.c	Thu Dec 08 21:00:39 2005 +0000
@@ -1535,7 +1535,7 @@
 	}
 }
 
-NMERR_T
+static NMERR_T
 nm_call_handler(NMUser * user, NMRequest * request, NMField * fields)
 {
 	NMERR_T rc = NM_OK, ret_code = NM_OK;
--- a/src/protocols/oscar/oscar.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Dec 08 21:00:39 2005 +0000
@@ -596,7 +596,7 @@
 	return;
 }
 
-gchar *oscar_caps_to_string(guint caps)
+static gchar *oscar_caps_to_string(guint caps)
 {
 	GString *str;
 	gchar *tmp;
@@ -2247,7 +2247,7 @@
  * Called by oscar_send_proxylogin_cb when we receive a ready packet
  * BBB
  */
-void oscar_xfer_proxylogin_ready(GaimXfer *xfer, gint fd) {
+static void oscar_xfer_proxylogin_ready(GaimXfer *xfer, gint fd) {
 	struct aim_oft_info *oft_info;
 	struct aim_rv_proxy_info *proxy_info;
 	
@@ -2299,7 +2299,7 @@
  * Called by oscar_sendfile_proxylogin_cb when we receive an ack packet in reply to an init_send
  * BBB
  */
-void oscar_xfer_proxylogin_ack(GaimXfer *xfer) {
+static void oscar_xfer_proxylogin_ack(GaimXfer *xfer) {
 	struct aim_oft_info *oft_info;
 	struct aim_rv_proxy_info *proxy_info;
 	
@@ -7364,7 +7364,7 @@
 	return m;
 }
 
-GHashTable *oscar_chat_info_defaults(GaimConnection *gc, const char *chat_name)
+static GHashTable *oscar_chat_info_defaults(GaimConnection *gc, const char *chat_name)
 {
 	GHashTable *defaults;
 
--- a/src/protocols/oscar/rxhandlers.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/oscar/rxhandlers.c	Thu Dec 08 21:00:39 2005 +0000
@@ -206,7 +206,7 @@
  * Bleck functions get called when there's no non-bleck functions
  * around to cleanup the mess...
  */
-faim_internal int bleck(aim_session_t *sess, aim_frame_t *frame, ...)
+static int bleck(aim_session_t *sess, aim_frame_t *frame, ...)
 {
 	fu16_t family, subtype;
 	fu16_t maxf, maxs;
--- a/src/protocols/oscar/ssi.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/oscar/ssi.c	Thu Dec 08 21:00:39 2005 +0000
@@ -232,7 +232,7 @@
 	return 0;
 }
 
-faim_export int aim_ssi_itemlist_valid(struct aim_ssi_item *list, struct aim_ssi_item *item)
+static int aim_ssi_itemlist_valid(struct aim_ssi_item *list, struct aim_ssi_item *item)
 {
 	struct aim_ssi_item *cur;
 	for (cur=list; cur; cur=cur->next)
--- a/src/protocols/yahoo/yahoo_filexfer.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/yahoo/yahoo_filexfer.c	Thu Dec 08 21:00:39 2005 +0000
@@ -226,7 +226,7 @@
 	return 0;
 }
 
-gssize yahoo_xfer_read(guchar **buffer, GaimXfer *xfer)
+static gssize yahoo_xfer_read(guchar **buffer, GaimXfer *xfer)
 {
 	gchar buf[4096];
 	gssize len;
@@ -291,7 +291,7 @@
 	return len;
 }
 
-gssize yahoo_xfer_write(const guchar *buffer, size_t size, GaimXfer *xfer)
+static gssize yahoo_xfer_write(const guchar *buffer, size_t size, GaimXfer *xfer)
 {
 	gssize len;
 	struct yahoo_xfer_data *xd = xfer->data;
--- a/src/protocols/yahoo/yahoo_picture.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/protocols/yahoo/yahoo_picture.c	Thu Dec 08 21:00:39 2005 +0000
@@ -43,7 +43,7 @@
 	int checksum;
 };
 
-void yahoo_fetch_picture_cb(void *user_data, const char *pic_data, size_t len)
+static void yahoo_fetch_picture_cb(void *user_data, const char *pic_data, size_t len)
 {
 	struct yahoo_fetch_picture_data *d = user_data;
 	GaimBuddy *b;
--- a/src/proxy.c	Thu Dec 08 20:59:49 2005 +0000
+++ b/src/proxy.c	Thu Dec 08 21:00:39 2005 +0000
@@ -184,7 +184,7 @@
 	return global_proxy_info;
 }
 
-GaimProxyInfo *
+static GaimProxyInfo *
 gaim_gnome_proxy_get_info(void)
 {
 	static GaimProxyInfo info = {0, NULL, 0, NULL, NULL};