comparison libpurple/protocols/qq/utils.c @ 23053:55f986ccbb6a

patch-05-reconnect-and-code-cleanup
author SHiNE CsyFeK <csyfek@gmail.com>
date Tue, 24 Jun 2008 12:28:38 +0000
parents 51dbe83ebbd3
children ebad75b719f5
comparison
equal deleted inserted replaced
23052:51dbe83ebbd3 23053:55f986ccbb6a
36 #include "qq.h" 36 #include "qq.h"
37 #include "util.h" 37 #include "util.h"
38 #include "utils.h" 38 #include "utils.h"
39 39
40 #define QQ_NAME_FORMAT "%d" 40 #define QQ_NAME_FORMAT "%d"
41
42 /* These functions are used only in development phase */
43 /*
44 static void _qq_show_socket(gchar *desc, gint fd) {
45 struct sockaddr_in sin;
46 socklen_t len = sizeof(sin);
47 getsockname(fd, (struct sockaddr *)&sin, &len);
48 purple_debug(PURPLE_DEBUG_INFO, desc, "%s:%d\n",
49 inet_ntoa(sin.sin_addr), g_ntohs(sin.sin_port));
50 }
51 */
41 52
42 gchar *get_name_by_index_str(gchar **array, const gchar *index_str, gint amount) 53 gchar *get_name_by_index_str(gchar **array, const gchar *index_str, gint amount)
43 { 54 {
44 gint index; 55 gint index;
45 56