Mercurial > pidgin.yaz
comparison src/protocols/qq/qq_proxy.c @ 13871:2be9dfa9569b
[gaim-migrate @ 16341]
Fixed a bug that prevented libqq from being loaded as a plugin.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Mon, 26 Jun 2006 03:44:39 +0000 |
parents | 983fd420e86b |
children | 16102b9c5c4a |
comparison
equal
deleted
inserted
replaced
13870:983fd420e86b | 13871:2be9dfa9569b |
---|---|
58 gaim_debug(GAIM_DEBUG_INFO, desc, "%s:%d\n", | 58 gaim_debug(GAIM_DEBUG_INFO, desc, "%s:%d\n", |
59 inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); | 59 inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); |
60 } | 60 } |
61 */ | 61 */ |
62 | 62 |
63 static void _qq_show_packet(gchar * desc, gchar * buf, gint len) | 63 void _qq_show_packet(gchar * desc, gchar * buf, gint len) |
64 { | 64 { |
65 char buf1[4096], buf2[10]; | 65 char buf1[4096], buf2[10]; |
66 int i; | 66 int i; |
67 buf1[0] = 0; | 67 buf1[0] = 0; |
68 for (i = 0; i < len; i++) { | 68 for (i = 0; i < len; i++) { |
106 return g_memdup(pwkey_tmp, QQ_KEY_LENGTH); | 106 return g_memdup(pwkey_tmp, QQ_KEY_LENGTH); |
107 } // _gen_pwkey | 107 } // _gen_pwkey |
108 | 108 |
109 | 109 |
110 /*****************************************************************************/ | 110 /*****************************************************************************/ |
111 static gint _qq_fill_host(struct sockaddr_in * addr, const gchar * host, guint16 port) | 111 gint _qq_fill_host(struct sockaddr_in * addr, const gchar * host, guint16 port) |
112 { | 112 { |
113 if (!inet_aton(host, &(addr->sin_addr))) { | 113 if (!inet_aton(host, &(addr->sin_addr))) { |
114 struct hostent *hp; | 114 struct hostent *hp; |
115 if (!(hp = gethostbyname(host))) { | 115 if (!(hp = gethostbyname(host))) { |
116 return -1; | 116 return -1; |