Mercurial > pidgin
comparison src/util.c @ 10112:1a91e814e9d8
[gaim-migrate @ 11145]
it looks like the rest of this was 64-bit stuff too
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 18 Oct 2004 05:40:02 +0000 |
parents | a9521c791afe |
children | 7ff9b8b22e7d |
comparison
equal
deleted
inserted
replaced
10111:8490f2e292a6 | 10112:1a91e814e9d8 |
---|---|
2363 size_mag /= 1024; | 2363 size_mag /= 1024; |
2364 size_index++; | 2364 size_index++; |
2365 } | 2365 } |
2366 | 2366 |
2367 if (size_index == 0) { | 2367 if (size_index == 0) { |
2368 return g_strdup_printf("%d %s", size, size_str[size_index]); | 2368 return g_strdup_printf("%zd %s", size, size_str[size_index]); |
2369 } else { | 2369 } else { |
2370 return g_strdup_printf("%.2f %s", size_mag, size_str[size_index]); | 2370 return g_strdup_printf("%.2f %s", size_mag, size_str[size_index]); |
2371 } | 2371 } |
2372 } | 2372 } |
2373 } | 2373 } |
2620 /* If we can find a Content-Length header at all, try to sscanf it. | 2620 /* If we can find a Content-Length header at all, try to sscanf it. |
2621 * Response headers should end with at least \r\n, so sscanf is safe, | 2621 * Response headers should end with at least \r\n, so sscanf is safe, |
2622 * if we make sure that there is indeed a \n in our header. | 2622 * if we make sure that there is indeed a \n in our header. |
2623 */ | 2623 */ |
2624 if (p && g_strstr_len(p, data_len - (p - data), "\n")) { | 2624 if (p && g_strstr_len(p, data_len - (p - data), "\n")) { |
2625 sscanf(p, "Content-Length: %u", &content_len); | 2625 sscanf(p, "Content-Length: %zu", &content_len); |
2626 gaim_debug_misc("parse_content_len", "parsed %u\n", content_len); | 2626 gaim_debug_misc("parse_content_len", "parsed %u\n", content_len); |
2627 } | 2627 } |
2628 | 2628 |
2629 return content_len; | 2629 return content_len; |
2630 } | 2630 } |