Mercurial > pidgin
comparison src/protocols/yahoo/yahoo_filexfer.c @ 10111:8490f2e292a6
[gaim-migrate @ 11144]
cleaning out the 64-bit stuff from my tree...piece by piece
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 18 Oct 2004 05:22:21 +0000 |
parents | 255596f41014 |
children | d4e9ff2edc4e |
comparison
equal
deleted
inserted
replaced
10110:4b276d2e5589 | 10111:8490f2e292a6 |
---|---|
115 gaim_xfer_start(xfer, source, NULL, 0); | 115 gaim_xfer_start(xfer, source, NULL, 0); |
116 | 116 |
117 | 117 |
118 pkt = yahoo_packet_new(YAHOO_SERVICE_FILETRANSFER, YAHOO_STATUS_AVAILABLE, yd->session_id); | 118 pkt = yahoo_packet_new(YAHOO_SERVICE_FILETRANSFER, YAHOO_STATUS_AVAILABLE, yd->session_id); |
119 | 119 |
120 size = g_strdup_printf("%d", gaim_xfer_get_size(xfer)); | 120 size = g_strdup_printf("%" G_GSIZE_FORMAT, gaim_xfer_get_size(xfer)); |
121 | 121 |
122 yahoo_packet_hash(pkt, 0, gaim_connection_get_display_name(gc)); | 122 yahoo_packet_hash(pkt, 0, gaim_connection_get_display_name(gc)); |
123 yahoo_packet_hash(pkt, 5, xfer->who); | 123 yahoo_packet_hash(pkt, 5, xfer->who); |
124 yahoo_packet_hash(pkt, 14, ""); | 124 yahoo_packet_hash(pkt, 14, ""); |
125 filename = g_path_get_basename(gaim_xfer_get_local_filename(xfer)); | 125 filename = g_path_get_basename(gaim_xfer_get_local_filename(xfer)); |
129 content_length = YAHOO_PACKET_HDRLEN + yahoo_packet_length(pkt); | 129 content_length = YAHOO_PACKET_HDRLEN + yahoo_packet_length(pkt); |
130 | 130 |
131 buf = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t); | 131 buf = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t); |
132 | 132 |
133 post = g_strdup_printf("POST /notifyft HTTP/1.0\r\n" | 133 post = g_strdup_printf("POST /notifyft HTTP/1.0\r\n" |
134 "Content-length: %d\r\n" | 134 "Content-length: %" G_GSIZE_FORMAT "\r\n" |
135 "Host: %s:%d\r\n" | 135 "Host: %s:%d\r\n" |
136 "Cookie: %s\r\n" | 136 "Cookie: %s\r\n" |
137 "\r\n", | 137 "\r\n", |
138 content_length + 4 + gaim_xfer_get_size(xfer), | 138 content_length + 4 + gaim_xfer_get_size(xfer), |
139 gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST), | 139 gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST), |