Mercurial > pidgin
comparison libpurple/protocols/jabber/oob.c @ 28513:fa7f3426ed13
jabber: Convert to purple_debug_* convenience functions.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 06 Nov 2009 08:39:49 +0000 |
parents | c585572e80dd |
children | 9ae3e70a327b |
comparison
equal
deleted
inserted
replaced
28512:562fd22dbe89 | 28513:fa7f3426ed13 |
---|---|
93 total_len - jox->written_len); | 93 total_len - jox->written_len); |
94 | 94 |
95 if(len < 0 && errno == EAGAIN) | 95 if(len < 0 && errno == EAGAIN) |
96 return; | 96 return; |
97 else if(len < 0) { | 97 else if(len < 0) { |
98 purple_debug(PURPLE_DEBUG_ERROR, "jabber", "Write error on oob xfer!\n"); | 98 purple_debug_error("jabber", "Write error on oob xfer!\n"); |
99 purple_input_remove(jox->writeh); | 99 purple_input_remove(jox->writeh); |
100 purple_xfer_cancel_local(xfer); | 100 purple_xfer_cancel_local(xfer); |
101 } | 101 } |
102 jox->written_len += len; | 102 jox->written_len += len; |
103 | 103 |
148 *buffer = (unsigned char*) g_strdup(tmp); | 148 *buffer = (unsigned char*) g_strdup(tmp); |
149 return strlen(tmp); | 149 return strlen(tmp); |
150 } | 150 } |
151 return 0; | 151 return 0; |
152 } else if (errno != EAGAIN) { | 152 } else if (errno != EAGAIN) { |
153 purple_debug(PURPLE_DEBUG_ERROR, "jabber", "Read error on oob xfer!\n"); | 153 purple_debug_error("jabber", "Read error on oob xfer!\n"); |
154 purple_xfer_cancel_local(xfer); | 154 purple_xfer_cancel_local(xfer); |
155 } | 155 } |
156 | 156 |
157 return 0; | 157 return 0; |
158 } | 158 } |