Mercurial > pidgin
comparison src/protocols/irc/dcc_send.c @ 11159:bd8ac1d4b2f2
[gaim-migrate @ 13246]
Get rid of a bunch of gcc4 compile warnings in oscar.
Here's what I'm doing:
-For random bits of binary data, use guchar *
-For textual data (not necessarily utf8), use gchar *
This seems to be what glib and gtk do
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 26 Jul 2005 04:34:37 +0000 |
| parents | f2e86683cafc |
| children | 519dc2186438 |
comparison
equal
deleted
inserted
replaced
| 11158:2c930d591492 | 11159:bd8ac1d4b2f2 |
|---|---|
| 49 /* | 49 /* |
| 50 * This function is called whenever data is received. | 50 * This function is called whenever data is received. |
| 51 * It sends the acknowledgement (in the form of a total byte count as an | 51 * It sends the acknowledgement (in the form of a total byte count as an |
| 52 * unsigned 4 byte integer in network byte order) | 52 * unsigned 4 byte integer in network byte order) |
| 53 */ | 53 */ |
| 54 static void irc_dccsend_recv_ack(GaimXfer *xfer, const char *data, size_t size) { | 54 static void irc_dccsend_recv_ack(GaimXfer *xfer, const guchar *data, size_t size) { |
| 55 unsigned long l; | 55 unsigned long l; |
| 56 | 56 |
| 57 l = htonl(xfer->bytes_sent); | 57 l = htonl(xfer->bytes_sent); |
| 58 write(xfer->fd, &l, sizeof(l)); | 58 write(xfer->fd, &l, sizeof(l)); |
| 59 } | 59 } |
| 212 | 212 |
| 213 | 213 |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 ssize_t irc_dccsend_send_write(const char *buffer, size_t size, GaimXfer *xfer) | 217 ssize_t irc_dccsend_send_write(const guchar *buffer, size_t size, GaimXfer *xfer) |
| 218 { | 218 { |
| 219 ssize_t s; | 219 ssize_t s; |
| 220 | 220 |
| 221 s = MIN(gaim_xfer_get_bytes_remaining(xfer), size); | 221 s = MIN(gaim_xfer_get_bytes_remaining(xfer), size); |
| 222 if (!s) | 222 if (!s) |
