changeset 12443:488a305f9aff

[gaim-migrate @ 14750] Make some functions static committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 09 Dec 2005 13:01:44 +0000
parents 8edb08af68c7
children 410462ce25ba
files src/protocols/bonjour/bonjour.c src/protocols/bonjour/jabber.c
diffstat 2 files changed, 16 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/bonjour/bonjour.c	Fri Dec 09 12:52:45 2005 +0000
+++ b/src/protocols/bonjour/bonjour.c	Fri Dec 09 13:01:44 2005 +0000
@@ -84,7 +84,7 @@
 	}
 }
 
-void
+static void
 bonjour_login(GaimAccount *account)
 {
 	GaimConnection *gc = gaim_account_get_connection(account);
@@ -151,7 +151,7 @@
 	gaim_connection_set_state(gc, GAIM_CONNECTED);
 }
 
-void
+static void
 bonjour_close(GaimConnection *connection)
 {
 	GaimGroup *bonjour_group = gaim_find_group(BONJOUR_GROUP_NAME);
@@ -179,13 +179,13 @@
 
 }
 
-const char *
+static const char *
 bonjour_list_icon(GaimAccount *account, GaimBuddy *buddy)
 {
 	return BONJOUR_ICON_NAME;
 }
 
-int
+static int
 bonjour_send_im(GaimConnection *connection, const char *to, const char *msg, GaimMessageFlags flags)
 {
 	if(!to || !msg)
@@ -194,7 +194,7 @@
 	return bonjour_jabber_send_message(((BonjourData*)(connection->proto_data))->jabber_data, to, msg);
 }
 
-void
+static void
 bonjour_set_status(GaimAccount *account, GaimStatus *status)
 {
 	GaimConnection *gc;
--- a/src/protocols/bonjour/jabber.c	Fri Dec 09 12:52:45 2005 +0000
+++ b/src/protocols/bonjour/jabber.c	Fri Dec 09 13:01:44 2005 +0000
@@ -45,7 +45,7 @@
 #include "bonjour.h"
 #include "buddy.h"
 
-gint
+static gint
 _connect_to_buddy(GaimBuddy *gb)
 {
 	gint socket_fd;
@@ -69,7 +69,8 @@
 	return socket_fd;
 }
 
-const char *
+#if 0 /* this isn't used anywhere... */
+static const char *
 _font_size_gaim_to_ichat(int size)
 {
 	switch (size) {
@@ -91,8 +92,9 @@
 
 	return "12";
 }
+#endif
 
-const char *
+static const char *
 _font_size_ichat_to_gaim(int size)
 {
 	if (size > 24) {
@@ -111,7 +113,7 @@
 
 	return "1";
 }
-void
+static void
 _jabber_parse_and_write_message_to_ui(char *message, GaimConnection *connection, GaimBuddy *gb)
 {
 	xmlnode *body_node = NULL;
@@ -216,7 +218,7 @@
 	g_free(html_body);
 }
 
-gboolean
+static gboolean
 _check_buddy_by_address(gpointer key, gpointer value, gpointer address)
 {
 	GaimBuddy *gb = (GaimBuddy*)value;
@@ -234,7 +236,7 @@
 	}
 }
 
-gint
+static gint
 _read_data(gint socket, char **message)
 {
 	GString *data = g_string_new("");
@@ -265,7 +267,7 @@
 	return total_message_length;
 }
 
-gint
+static gint
 _send_data(gint socket, char *message)
 {
 	gint message_len = strlen(message);
@@ -285,7 +287,7 @@
 	return strlen(message);
 }
 
-void
+static void
 _client_socket_handler(gpointer data, gint socket, GaimInputCondition condition)
 {
 	char *message = NULL;
@@ -360,7 +362,7 @@
 	}
 }
 
-void
+static void
 _server_socket_handler(gpointer data, int server_socket, GaimInputCondition condition)
 {
 	GaimBuddy *gb = NULL;