comparison libpurple/protocols/qq/qq_proxy.c @ 22486:3225c99785b8

Fix a bunch of compiler warnings caused by my addition of G_GNUC_PRINTF() to our debug functions (I really thought we had added that in a while ago?) I didn't fix all of them... just most of them. Oh, see these pages for a little info: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-PRINTF:CAPS
author Mark Doliner <mark@kingant.net>
date Sun, 16 Mar 2008 20:36:52 +0000
parents 38cc722159ff
children 9a5d140400f1
comparison
equal deleted inserted replaced
22485:9511acb88e58 22486:3225c99785b8
292 * [EINTR] 292 * [EINTR]
293 * A signal interrupted the call. 293 * A signal interrupted the call.
294 * The connection is established asynchronously. 294 * The connection is established asynchronously.
295 */ 295 */
296 if ((errno == EINPROGRESS) || (errno == EINTR)) { 296 if ((errno == EINPROGRESS) || (errno == EINTR)) {
297 purple_debug(PURPLE_DEBUG_WARNING, "QQ", "Connect in asynchronous mode.\n"); 297 purple_debug_warning("QQ", "Connect in asynchronous mode.\n");
298 phb->inpa = purple_input_add(fd, PURPLE_INPUT_WRITE, no_one_calls, phb); 298 phb->inpa = purple_input_add(fd, PURPLE_INPUT_WRITE, no_one_calls, phb);
299 } else { 299 } else {
300 purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Connection failed: %d\n", g_strerror(errno)); 300 purple_debug_error("QQ", "Connection failed: %s\n", g_strerror(errno));
301 close(fd); 301 close(fd);
302 return -1; 302 return -1;
303 } /* if errno */ 303 } /* if errno */
304 } else { /* connect returns 0 */ 304 } else { /* connect returns 0 */
305 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Connected.\n"); 305 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Connected.\n");