Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 4201:511c2b63caa4
[gaim-migrate @ 4432]
Some code cleanups to remove warnings and fix up indenting a little.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 04 Jan 2003 21:01:32 +0000 |
parents | 9615c6996348 |
children | a614423c648f |
comparison
equal
deleted
inserted
replaced
4200:c8fb43808a4b | 4201:511c2b63caa4 |
---|---|
161 return buf; | 161 return buf; |
162 } | 162 } |
163 | 163 |
164 static int msn_write(int fd, void *data, int len) | 164 static int msn_write(int fd, void *data, int len) |
165 { | 165 { |
166 debug_printf("MSN C: %s", data); | 166 debug_printf("MSN C: %s", (char *)data); |
167 return write(fd, data, len); | 167 return write(fd, data, len); |
168 } | 168 } |
169 | 169 |
170 static char *url_decode(const char *msg) | 170 static char *url_decode(const char *msg) |
171 { | 171 { |
2111 } | 2111 } |
2112 | 2112 |
2113 static void msn_file_transfer_in(struct gaim_connection *gc, | 2113 static void msn_file_transfer_in(struct gaim_connection *gc, |
2114 struct file_transfer *xfer, int offset) | 2114 struct file_transfer *xfer, int offset) |
2115 { | 2115 { |
2116 struct msn_data *md = gc->proto_data; | |
2117 struct msn_file_transfer *mft = find_mft_by_xfer(gc, xfer); | 2116 struct msn_file_transfer *mft = find_mft_by_xfer(gc, xfer); |
2118 struct msn_switchboard *ms = msn_find_switch(gc, mft->sn); | 2117 struct msn_switchboard *ms = msn_find_switch(gc, mft->sn); |
2119 char header[MSN_BUF_LEN]; | 2118 char header[MSN_BUF_LEN]; |
2120 char buf[MSN_BUF_LEN]; | 2119 char buf[MSN_BUF_LEN]; |
2121 | 2120 |
2192 static void msn_file_transfer_done(struct gaim_connection *gc, | 2191 static void msn_file_transfer_done(struct gaim_connection *gc, |
2193 struct file_transfer *xfer) | 2192 struct file_transfer *xfer) |
2194 { | 2193 { |
2195 struct msn_data *md = (struct msn_data *)gc->proto_data; | 2194 struct msn_data *md = (struct msn_data *)gc->proto_data; |
2196 struct msn_file_transfer *mft = find_mft_by_xfer(gc, xfer); | 2195 struct msn_file_transfer *mft = find_mft_by_xfer(gc, xfer); |
2197 struct msn_switchboard *ms = msn_find_switch(gc, mft->sn); | |
2198 char buf[MSN_BUF_LEN]; | 2196 char buf[MSN_BUF_LEN]; |
2199 | 2197 |
2200 g_snprintf(buf, sizeof(buf), "BYE 16777989\r\n"); | 2198 g_snprintf(buf, sizeof(buf), "BYE 16777989\r\n"); |
2201 | 2199 |
2202 msn_write(mft->fd, buf, strlen(buf)); | 2200 msn_write(mft->fd, buf, strlen(buf)); |