# HG changeset patch # User Mark Doliner # Date 1130279247 0 # Node ID 27ed05facc71975e497f6f03940d10a4a4c438be # Parent cd20599f220b2fd5a73b5d833702da15a04abaeb [gaim-migrate @ 14114] Allow a string to be localized and use gaim_debug_warning instead of perror committer: Tailor Script diff -r cd20599f220b -r 27ed05facc71 src/protocols/bonjour/bonjour.h --- a/src/protocols/bonjour/bonjour.h Tue Oct 25 22:11:52 2005 +0000 +++ b/src/protocols/bonjour/bonjour.h Tue Oct 25 22:27:27 2005 +0000 @@ -29,9 +29,10 @@ #include #include "dns_sd.h" +#include "internal.h" #include "jabber.h" -#define BONJOUR_GROUP_NAME "Bonjour" +#define BONJOUR_GROUP_NAME _("Bonjour") #define BONJOUR_PROTOCOL_NAME "bonjour" #define BONJOUR_ICON_NAME "bonjour" diff -r cd20599f220b -r 27ed05facc71 src/protocols/bonjour/jabber.c --- a/src/protocols/bonjour/jabber.c Tue Oct 25 22:11:52 2005 +0000 +++ b/src/protocols/bonjour/jabber.c Tue Oct 25 22:27:27 2005 +0000 @@ -62,7 +62,7 @@ retorno = connect(socket_fd, (struct sockaddr*)&buddy_address, sizeof(struct sockaddr)); if (retorno == -1) { - perror("connect"); + gaim_debug_warning("bonjour", "connect error: %s\n", strerror(errno)); } fcntl(socket_fd, F_SETFL, O_NONBLOCK); @@ -266,7 +266,7 @@ if (parcial_message_length == -1) { - perror("recv"); + gaim_debug_warning("bonjour", "receive error: %s\n", strerror(errno)); if (total_message_length == 0) { return -1; } @@ -568,7 +568,7 @@ if (send(bb->conversation->socket, DOCTYPE, strlen(DOCTYPE), 0) == -1) { gaim_debug_error("bonjour", "Unable to start a conversation\n"); - perror("send"); + gaim_debug_warning("bonjour", "send error: %s\n", strerror(errno)); conv_message = g_strdup("Unable to send the message, the conversation couldn't be started."); conversation = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, bb->name, data->account); gaim_conversation_write(conversation, NULL, conv_message, GAIM_MESSAGE_SYSTEM, time(NULL));