Mercurial > pidgin.yaz
changeset 11823:27ed05facc71
[gaim-migrate @ 14114]
Allow a string to be localized and use gaim_debug_warning instead of
perror
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 25 Oct 2005 22:27:27 +0000 |
parents | cd20599f220b |
children | 6d9c0ed27146 |
files | src/protocols/bonjour/bonjour.h src/protocols/bonjour/jabber.c |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <howl.h> #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"
--- 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));