Mercurial > pidgin.yaz
comparison libpurple/protocols/sametime/sametime.c @ 21284:6de09629f091
propagate from branch 'im.pidgin.pidgin.next.minor' (head 0c9637482b845cc65e95a26e144697391c51133f)
to branch 'im.pidgin.pidgin' (head e3a6991e78dac328f13804950fee54dfb8afc3c5)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 10 Nov 2007 04:52:20 +0000 |
parents | a20ef7180680 35b4f1dc4c8d |
children | 84925e6055bc 38cc722159ff |
comparison
equal
deleted
inserted
replaced
21283:406aa3be6b32 | 21284:6de09629f091 |
---|---|
1700 if(! ret) { | 1700 if(! ret) { |
1701 DEBUG_INFO("connection reset\n"); | 1701 DEBUG_INFO("connection reset\n"); |
1702 purple_connection_error(pd->gc, _("Connection reset")); | 1702 purple_connection_error(pd->gc, _("Connection reset")); |
1703 | 1703 |
1704 } else if(ret < 0) { | 1704 } else if(ret < 0) { |
1705 char *msg = strerror(err); | 1705 char *msg = g_strerror(err); |
1706 | 1706 |
1707 DEBUG_INFO("error in read callback: %s\n", msg); | 1707 DEBUG_INFO("error in read callback: %s\n", msg); |
1708 | 1708 |
1709 msg = g_strdup_printf(_("Error reading from socket: %s"), msg); | 1709 msg = g_strdup_printf(_("Error reading from socket: %s"), msg); |
1710 purple_connection_error(pd->gc, msg); | 1710 purple_connection_error(pd->gc, msg); |
2165 mwFileTransfer_send(ft, &o); | 2165 mwFileTransfer_send(ft, &o); |
2166 | 2166 |
2167 } else { | 2167 } else { |
2168 int err = errno; | 2168 int err = errno; |
2169 DEBUG_WARN("problem reading from file %s: %s\n", | 2169 DEBUG_WARN("problem reading from file %s: %s\n", |
2170 NSTR(mwFileTransfer_getFileName(ft)), strerror(err)); | 2170 NSTR(mwFileTransfer_getFileName(ft)), g_strerror(err)); |
2171 | 2171 |
2172 mwFileTransfer_cancel(ft); | 2172 mwFileTransfer_cancel(ft); |
2173 } | 2173 } |
2174 } | 2174 } |
2175 | 2175 |
5007 | 5007 |
5008 /* test that we can actually send the file */ | 5008 /* test that we can actually send the file */ |
5009 fp = g_fopen(filename, "rb"); | 5009 fp = g_fopen(filename, "rb"); |
5010 if(! fp) { | 5010 if(! fp) { |
5011 char *msg = g_strdup_printf(_("Error reading file %s: \n%s\n"), | 5011 char *msg = g_strdup_printf(_("Error reading file %s: \n%s\n"), |
5012 filename, strerror(errno)); | 5012 filename, g_strerror(errno)); |
5013 purple_xfer_error(purple_xfer_get_type(xfer), acct, xfer->who, msg); | 5013 purple_xfer_error(purple_xfer_get_type(xfer), acct, xfer->who, msg); |
5014 g_free(msg); | 5014 g_free(msg); |
5015 return; | 5015 return; |
5016 } | 5016 } |
5017 fclose(fp); | 5017 fclose(fp); |
5665 NULL, /**< dependencies */ | 5665 NULL, /**< dependencies */ |
5666 PURPLE_PRIORITY_DEFAULT, /**< priority */ | 5666 PURPLE_PRIORITY_DEFAULT, /**< priority */ |
5667 | 5667 |
5668 PLUGIN_ID, /**< id */ | 5668 PLUGIN_ID, /**< id */ |
5669 PLUGIN_NAME, /**< name */ | 5669 PLUGIN_NAME, /**< name */ |
5670 VERSION, /**< version */ | 5670 DISPLAY_VERSION, /**< version */ |
5671 PLUGIN_SUMMARY, /**< summary */ | 5671 PLUGIN_SUMMARY, /**< summary */ |
5672 PLUGIN_DESC, /**< description */ | 5672 PLUGIN_DESC, /**< description */ |
5673 PLUGIN_AUTHOR, /**< author */ | 5673 PLUGIN_AUTHOR, /**< author */ |
5674 PLUGIN_HOMEPAGE, /**< homepage */ | 5674 PLUGIN_HOMEPAGE, /**< homepage */ |
5675 | 5675 |