# HG changeset patch # User Richard Laager # Date 1134075639 0 # Node ID a88ca6da0b388402d5a48b1349752b42e1f62f6b # Parent 8c339d9f1bb48112a005803022e72c6bd1a092d2 [gaim-migrate @ 14719] Make some functions static. committer: Tailor Script diff -r 8c339d9f1bb4 -r a88ca6da0b38 plugins/perl/common/Request.xs --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 plugins/perl/common/Util.xs --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/connection.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/gtkimhtml.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/gtkprefs.c --- 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) diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/idle.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/novell/nmuser.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/oscar/oscar.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/oscar/rxhandlers.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/oscar/ssi.c --- 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) diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/yahoo/yahoo_filexfer.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/protocols/yahoo/yahoo_picture.c --- 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; diff -r 8c339d9f1bb4 -r a88ca6da0b38 src/proxy.c --- 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};