Mercurial > pidgin.yaz
diff src/protocols/bonjour/jabber.c @ 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 | b91a84e7cbcb |
children | e05778d4f12d |
line wrap: on
line diff
--- 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));