im.pidgin.pidgin: db2fbab5f680fc12e8073b1127b3ff14fb703637
rlaager at pidgin.im
rlaager at pidgin.im
Wed Jan 16 14:15:42 EST 2008
-----------------------------------------------------------------
Revision: db2fbab5f680fc12e8073b1127b3ff14fb703637
Ancestor: 2a9420daed1d25d2d80d951ddc9e2b6ec9f1989d
Author: rlaager at pidgin.im
Date: 2008-01-16T19:12:46
Branch: im.pidgin.pidgin
Modified files:
finch/libgnt/gntmain.c libpurple/protocols/irc/dcc_send.c
libpurple/protocols/msnp9/notification.c
libpurple/protocols/msnp9/servconn.c
libpurple/protocols/zephyr/zephyr.c
ChangeLog:
Use g_strerror() instead of strerror() in a few places.
-------------- next part --------------
============================================================
--- finch/libgnt/gntmain.c 458de173984ff771ca86afc56b8a6da0230cbe82
+++ finch/libgnt/gntmain.c a868ee689a1ad57abea4afaaccd6fa6131e498eb
@@ -233,7 +233,7 @@ io_invoke(GIOChannel *source, GIOConditi
{
int ch = getch(); /* This should return ERR, but let's see what it really returns */
endwin();
- printf("ERROR: %s\n", strerror(errno));
+ printf("ERROR: %s\n", g_strerror(errno));
printf("File descriptor is: %d\n\nGIOChannel is: %p\ngetch() = %d\n", STDIN_FILENO, source, ch);
raise(SIGABRT);
}
============================================================
--- libpurple/protocols/irc/dcc_send.c dee3b763803a72ba0ca2c68ae9b8515a272217ef
+++ libpurple/protocols/irc/dcc_send.c 141d56c9ad3855c495ae5724a638326015d70571
@@ -56,7 +56,7 @@ static void irc_dccsend_recv_ack(PurpleX
l = htonl(xfer->bytes_sent);
result = write(xfer->fd, &l, sizeof(l));
if (result != sizeof(l)) {
- purple_debug_error("irc", "unable to send acknowledgement: %s\n", strerror(errno));
+ purple_debug_error("irc", "unable to send acknowledgement: %s\n", g_strerror(errno));
/* TODO: We should probably close the connection here or something. */
}
}
============================================================
--- libpurple/protocols/msnp9/notification.c ee83db2707a80aea2a2bfa6453a4a5dba6b2117b
+++ libpurple/protocols/msnp9/notification.c f2f678f78f86b80a2135674304ab7f905968dae5
@@ -1012,7 +1012,7 @@ url_cmd(MsnCmdProc *cmdproc, MsnCommand
{
purple_debug_error("msn",
"Error opening temp passport file: %s\n",
- strerror(errno));
+ g_strerror(errno));
}
else
{
@@ -1061,7 +1061,7 @@ url_cmd(MsnCmdProc *cmdproc, MsnCommand
{
purple_debug_error("msn",
"Error closing temp passport file: %s\n",
- strerror(errno));
+ g_strerror(errno));
g_unlink(session->passport_info.file);
g_free(session->passport_info.file);
============================================================
--- libpurple/protocols/msnp9/servconn.c c31946db40e86a2959451d1bb128155b59dd71e2
+++ libpurple/protocols/msnp9/servconn.c a28c3675abee433b4bc90382be2d29f92f068b76
@@ -392,7 +392,7 @@ read_cb(gpointer data, gint source, Purp
return;
else if (len <= 0)
{
- purple_debug_error("msn", "servconn read error, len: %d error: %s\n", len, strerror(errno));
+ purple_debug_error("msn", "servconn read error, len: %d error: %s\n", len, g_strerror(errno));
msn_servconn_got_error(servconn, MSN_SERVCONN_ERROR_READ);
return;
============================================================
--- libpurple/protocols/zephyr/zephyr.c 6887471b829bf067303fd57afb6b4bac63a3eb5d
+++ libpurple/protocols/zephyr/zephyr.c 21f87d0c083a609963b702cd49e141996643da0f
@@ -165,7 +165,7 @@ static Code_t zephyr_subscribe_to(zephyr
size_t len = strlen(zsubstr);
result = write(zephyr->totzc[ZEPHYR_FD_WRITE],zsubstr,len);
if (result != len) {
- purple_debug_error("zephyr", "Unable to write a message: %s\n", strerror(errno));
+ purple_debug_error("zephyr", "Unable to write a message: %s\n", g_strerror(errno));
} else {
ret_val = ZERR_NONE;
}
@@ -1380,7 +1380,7 @@ static gint check_loc(gpointer data)
size_t len = strlen(zlocstr);
size_t result = write(zephyr->totzc[ZEPHYR_FD_WRITE],zlocstr,len);
if (result != len) {
- purple_debug_error("zephyr", "Unable to write a message: %s\n", strerror(errno));
+ purple_debug_error("zephyr", "Unable to write a message: %s\n", g_strerror(errno));
}
g_free(zlocstr);
}
@@ -2293,7 +2293,7 @@ static void zephyr_zloc(PurpleConnection
len = strlen(zlocstr);
result = write(zephyr->totzc[ZEPHYR_FD_WRITE],zlocstr,len);
if (result != len) {
- purple_debug_error("zephyr", "Unable to write a message: %s\n", strerror(errno));
+ purple_debug_error("zephyr", "Unable to write a message: %s\n", g_strerror(errno));
}
g_free(zlocstr);
}
@@ -2322,7 +2322,7 @@ static void zephyr_set_status(PurpleAcco
len = strlen(zexpstr);
result = write(zephyr->totzc[ZEPHYR_FD_WRITE],zexpstr,len);
if (result != len) {
- purple_debug_error("zephyr", "Unable to write message: %s\n", strerror(errno));
+ purple_debug_error("zephyr", "Unable to write message: %s\n", g_strerror(errno));
}
g_free(zexpstr);
}
@@ -2336,7 +2336,7 @@ static void zephyr_set_status(PurpleAcco
len = strlen(zexpstr);
result = write(zephyr->totzc[ZEPHYR_FD_WRITE],zexpstr,len);
if (result != len) {
- purple_debug_error("zephyr", "Unable to write message: %s\n", strerror(errno));
+ purple_debug_error("zephyr", "Unable to write message: %s\n", g_strerror(errno));
}
g_free(zexpstr);
}
More information about the Commits
mailing list