Changeset 14644
- Timestamp:
- Dec 29, 2015, 7:37:31 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r14625 r14644 454 454 455 455 set(NEEDED_HEADERS 456 stdbool.h457 456 sys/statvfs.h 458 457 xfs/xfs.h -
trunk/configure.ac
r14575 r14644 107 107 AC_HEADER_TIME 108 108 109 AC_CHECK_HEADERS([ stdbool.hxlocale.h])109 AC_CHECK_HEADERS([xlocale.h]) 110 110 AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename canonicalize_file_name strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp uselocale _configthreadlocale]) 111 111 AC_PROG_INSTALL -
trunk/libtransmission/announcer-http.c
r14634 r14644 259 259 260 260 if (tr_variantDictFindRaw (&benc, TR_KEY_peers6, &raw, &len)) { 261 dbgmsg (data->log_name, "got a peers6 length of % "TR_PRIuSIZE, len);261 dbgmsg (data->log_name, "got a peers6 length of %zu", len); 262 262 response->pex6 = tr_peerMgrCompact6ToPex (raw, len, 263 263 NULL, 0, &response->pex6_count); … … 265 265 266 266 if (tr_variantDictFindRaw (&benc, TR_KEY_peers, &raw, &len)) { 267 dbgmsg (data->log_name, "got a compact peers length of % "TR_PRIuSIZE, len);267 dbgmsg (data->log_name, "got a compact peers length of %zu", len); 268 268 response->pex = tr_peerMgrCompactToPex (raw, len, 269 269 NULL, 0, &response->pex_count); 270 270 } else if (tr_variantDictFindList (&benc, TR_KEY_peers, &tmp)) { 271 271 response->pex = listToPex (tmp, &response->pex_count); 272 dbgmsg (data->log_name, "got a peers list with % "TR_PRIuSIZE"entries",272 dbgmsg (data->log_name, "got a peers list with %zu entries", 273 273 response->pex_count); 274 274 } -
trunk/libtransmission/announcer-udp.c
r14633 r14644 689 689 } 690 690 691 dbgmsg (tracker->key, "addr %p -- connected %d (% "TR_PRIuSIZE" %"TR_PRIuSIZE") -- connecting_at %"TR_PRIuSIZE,691 dbgmsg (tracker->key, "addr %p -- connected %d (%zu %zu) -- connecting_at %zu", 692 692 (void*)tracker->addr, 693 693 (int)(tracker->connection_expiration_time > now), … … 872 872 struct evbuffer * buf; 873 873 874 /*fprintf (stderr, "got an incoming udp message w/len % "TR_PRIuSIZE"\n", msglen);*/874 /*fprintf (stderr, "got an incoming udp message w/len %zu\n", msglen);*/ 875 875 876 876 if (!session || !session->announcer_udp) -
trunk/libtransmission/announcer.c
r14633 r14644 1033 1033 "min_interval:%d " 1034 1034 "tracker_id_str:%s " 1035 "pex:% "TR_PRIuSIZE""1036 "pex6:% "TR_PRIuSIZE""1035 "pex:%zu " 1036 "pex6:%zu " 1037 1037 "err:%s " 1038 1038 "warn:%s", … … 1285 1285 /* schedule a rescrape */ 1286 1286 interval = getRetryInterval (tier->currentTracker); 1287 dbgmsg (tier, "Retrying scrape in % "TR_PRIuSIZE"seconds.", (size_t)interval);1288 tr_logAddTorInfo (tier->tor, "Retrying scrape in % "TR_PRIuSIZE"seconds.", (size_t)interval);1287 dbgmsg (tier, "Retrying scrape in %zu seconds.", (size_t)interval); 1288 tr_logAddTorInfo (tier->tor, "Retrying scrape in %zu seconds.", (size_t)interval); 1289 1289 tier->lastScrapeSucceeded = false; 1290 1290 tier->scrapeAt = get_next_scrape_time (session, tier, interval); -
trunk/libtransmission/bandwidth.c
r14532 r14644 394 394 #ifdef DEBUG_DIRECTION 395 395 if ((dir == DEBUG_DIRECTION) && (band->isLimited)) 396 fprintf (stderr, "%p consumed %5 "TR_PRIuSIZE" bytes of %5s data... was %6"TR_PRIuSIZE", now %6"TR_PRIuSIZE"left\n",396 fprintf (stderr, "%p consumed %5zu bytes of %5s data... was %6zu, now %6zu left\n", 397 397 b, byteCount, (isPieceData?"piece":"raw"), oldBytesLeft, band->bytesLeft); 398 398 #endif -
trunk/libtransmission/blocklist.c
r14334 r14644 98 98 99 99 base = tr_sys_path_basename (b->filename, NULL); 100 tr_logAddInfo (_("Blocklist \"%s\" contains % "TR_PRIuSIZE"entries"), base, b->ruleCount);100 tr_logAddInfo (_("Blocklist \"%s\" contains %zu entries"), base, b->ruleCount); 101 101 tr_free (base); 102 102 } … … 406 406 { 407 407 char * base = tr_sys_path_basename (b->filename, NULL); 408 tr_logAddInfo (_("Blocklist \"%s\" updated with % "TR_PRIuSIZE"entries"), base, ranges_count);408 tr_logAddInfo (_("Blocklist \"%s\" updated with %zu entries"), base, ranges_count); 409 409 tr_free (base); 410 410 } -
trunk/libtransmission/cache.c
r14613 r14644 94 94 if (b->tor != ref->tor) 95 95 break; 96 //fprintf (stderr, "pos %d tor %d block % "TR_PRIuSIZE" time %"TR_PRIuSIZE"\n", i, b->tor->uniqueId, (size_t)b->block, (size_t)b->time);96 //fprintf (stderr, "pos %d tor %d block %zu time %zu\n", i, b->tor->uniqueId, (size_t)b->block, (size_t)b->time); 97 97 } 98 98 … … 439 439 tr_torGetFileBlockRange (torrent, i, &first, &last); 440 440 pos = findBlockPos (cache, torrent, first); 441 dbgmsg ("flushing file %d from cache to disk: blocks [% "TR_PRIuSIZE"...%"TR_PRIuSIZE"]", (int)i, (size_t)first, (size_t)last);441 dbgmsg ("flushing file %d from cache to disk: blocks [%zu...%zu]", (int)i, (size_t)first, (size_t)last); 442 442 443 443 /* flush out all the blocks in that file */ -
trunk/libtransmission/handshake.c
r14476 r14644 251 251 uint8_t peer_id[PEER_ID_LEN]; 252 252 253 dbgmsg (handshake, "payload: need %d, got % "TR_PRIuSIZE,253 dbgmsg (handshake, "payload: need %d, got %zu", 254 254 HANDSHAKE_SIZE, evbuffer_get_length (inbuf)); 255 255 … … 568 568 const size_t needlen = handshake->pad_d_len; 569 569 570 dbgmsg (handshake, "pad d: need % "TR_PRIuSIZE", got %"TR_PRIuSIZE,570 dbgmsg (handshake, "pad d: need %zu, got %zu", 571 571 needlen, evbuffer_get_length (inbuf)); 572 572 if (evbuffer_get_length (inbuf) < needlen) … … 596 596 uint8_t hash[SHA_DIGEST_LENGTH]; 597 597 598 dbgmsg (handshake, "payload: need %d, got % "TR_PRIuSIZE,598 dbgmsg (handshake, "payload: need %d, got %zu", 599 599 INCOMING_HANDSHAKE_LEN, evbuffer_get_length (inbuf)); 600 600 … … 736 736 int len; 737 737 738 dbgmsg (handshake, "in readYa... need %d, have % "TR_PRIuSIZE,738 dbgmsg (handshake, "in readYa... need %d, have %zu", 739 739 KEY_LEN, evbuffer_get_length (inbuf)); 740 740 if (evbuffer_get_length (inbuf) < KEY_LEN) … … 885 885 uint32_t crypto_select; 886 886 887 dbgmsg (handshake, "reading IA... have % "TR_PRIuSIZE", need %"TR_PRIuSIZE,887 dbgmsg (handshake, "reading IA... have %zu, need %zu", 888 888 evbuffer_get_length (inbuf), needlen); 889 889 if (evbuffer_get_length (inbuf) < needlen) … … 962 962 const size_t needlen = HANDSHAKE_SIZE; 963 963 964 dbgmsg (handshake, "reading payload stream... have % "TR_PRIuSIZE", need %"TR_PRIuSIZE,964 dbgmsg (handshake, "reading payload stream... have %zu, need %zu", 965 965 evbuffer_get_length (inbuf), needlen); 966 966 if (evbuffer_get_length (inbuf) < needlen) -
trunk/libtransmission/peer-io.c
r14548 r14644 412 412 413 413 rc = evbuffer_add (io->inbuf, buf, buflen); 414 dbgmsg (io, "utp_on_read got % "TR_PRIuSIZE"bytes", buflen);414 dbgmsg (io, "utp_on_read got %zu bytes", buflen); 415 415 416 416 if (rc < 0) { … … 431 431 432 432 rc = evbuffer_remove (io->outbuf, buf, buflen); 433 dbgmsg (io, "utp_on_write sending % "TR_PRIuSIZE"bytes... evbuffer_remove returned %d", buflen, rc);433 dbgmsg (io, "utp_on_write sending %zu bytes... evbuffer_remove returned %d", buflen, rc); 434 434 assert (rc == (int)buflen); /* if this fails, we've corrupted our bookkeeping somewhere */ 435 435 if (rc < (long)buflen) { … … 449 449 bytes = tr_bandwidthClamp (&io->bandwidth, TR_DOWN, UTP_READ_BUFFER_SIZE); 450 450 451 dbgmsg (io, "utp_get_rb_size is saying it's ready to read % "TR_PRIuSIZE"bytes", bytes);451 dbgmsg (io, "utp_get_rb_size is saying it's ready to read %zu bytes", bytes); 452 452 return UTP_READ_BUFFER_SIZE - bytes; 453 453 } … … 510 510 assert (tr_isPeerIo (io)); 511 511 512 dbgmsg (io, "utp_on_overhead -- count is % "TR_PRIuSIZE, count);512 dbgmsg (io, "utp_on_overhead -- count is %zu", count); 513 513 514 514 tr_bandwidthUsed (&io->bandwidth, send ? TR_UP : TR_DOWN, … … 1288 1288 int n = 0; 1289 1289 const size_t old_len = evbuffer_get_length (io->outbuf); 1290 dbgmsg (io, "in tr_peerIoTryWrite % "TR_PRIuSIZE, howmuch);1290 dbgmsg (io, "in tr_peerIoTryWrite %zu", howmuch); 1291 1291 1292 1292 if (howmuch > old_len) … … 1341 1341 bytesUsed = tr_peerIoTryWrite (io, limit); 1342 1342 1343 dbgmsg (io, "flushing peer-io, direction %d, limit % "TR_PRIuSIZE", bytesUsed %d", (int)dir, limit, bytesUsed);1343 dbgmsg (io, "flushing peer-io, direction %d, limit %zu, bytesUsed %d", (int)dir, limit, bytesUsed); 1344 1344 return bytesUsed; 1345 1345 } -
trunk/libtransmission/peer-mgr.c
r14640 r14644 2903 2903 const int inc = maxIncrease * mult; 2904 2904 maxPeers = s->maxPeers + inc; 2905 tordbg (s, "time since last cancel is % "PRIdMAX"-- increasing the "2905 tordbg (s, "time since last cancel is %jd -- increasing the " 2906 2906 "number of peers we're interested in by %d", 2907 2907 (intmax_t)timeSinceCancel, inc); -
trunk/libtransmission/peer-msgs.c
r14634 r14644 335 335 dbgOutMessageLen (tr_peerMsgs * msgs) 336 336 { 337 dbgmsg (msgs, "outMessage size is now % "TR_PRIuSIZE, evbuffer_get_length (msgs->outMessages));337 dbgmsg (msgs, "outMessage size is now %zu", evbuffer_get_length (msgs->outMessages)); 338 338 } 339 339 … … 907 907 { 908 908 struct peer_request req; 909 /*fprintf (stderr, "SENDING CANCEL MESSAGE FOR BLOCK % "TR_PRIuSIZE"\n\t\tFROM PEER %p ------------------------------------\n", (size_t)block, msgs->peer);*/909 /*fprintf (stderr, "SENDING CANCEL MESSAGE FOR BLOCK %zu\n\t\tFROM PEER %p ------------------------------------\n", (size_t)block, msgs->peer);*/ 910 910 blockToReq (msgs->torrent, block, &req); 911 911 protocolSendCancel (msgs, &req); … … 1301 1301 tr_peerIoReadUint8 (msgs->io, inbuf, &id); 1302 1302 msgs->incoming.id = id; 1303 dbgmsg (msgs, "msgs->incoming.id is now %d; msgs->incoming.length is % "TR_PRIuSIZE, id, (size_t)msgs->incoming.length);1303 dbgmsg (msgs, "msgs->incoming.id is now %d; msgs->incoming.length is %zu", id, (size_t)msgs->incoming.length); 1304 1304 1305 1305 if (id == BT_PIECE) … … 1464 1464 fireClientGotPieceData (msgs, n); 1465 1465 *setme_piece_bytes_read += n; 1466 dbgmsg (msgs, "got % "TR_PRIuSIZE"bytes for block %u:%u->%u ... %d remain",1466 dbgmsg (msgs, "got %zu bytes for block %u:%u->%u ... %d remain", 1467 1467 n, req->index, req->offset, req->length, 1468 1468 (int)(req->length - evbuffer_get_length (block_buffer))); … … 1498 1498 --msglen; /* id length */ 1499 1499 1500 dbgmsg (msgs, "got BT id %d, len %d, buffer size is % "TR_PRIuSIZE, (int)id, (int)msglen, inlen);1500 dbgmsg (msgs, "got BT id %d, len %d, buffer size is %zu", (int)id, (int)msglen, inlen); 1501 1501 1502 1502 if (inlen < msglen) … … 1765 1765 const size_t inlen = evbuffer_get_length (in); 1766 1766 1767 dbgmsg (msgs, "canRead: inlen is % "TR_PRIuSIZE", msgs->state is %d", inlen, msgs->state);1767 dbgmsg (msgs, "canRead: inlen is %zu, msgs->state is %d", inlen, msgs->state); 1768 1768 1769 1769 if (!inlen) … … 1933 1933 if (haveMessages && !msgs->outMessagesBatchedAt) /* fresh batch */ 1934 1934 { 1935 dbgmsg (msgs, "started an outMessages batch (length is % "TR_PRIuSIZE")", evbuffer_get_length (msgs->outMessages));1935 dbgmsg (msgs, "started an outMessages batch (length is %zu)", evbuffer_get_length (msgs->outMessages)); 1936 1936 msgs->outMessagesBatchedAt = now; 1937 1937 } … … 1940 1940 const size_t len = evbuffer_get_length (msgs->outMessages); 1941 1941 /* flush the protocol messages */ 1942 dbgmsg (msgs, "flushing outMessages... to %p (length is % "TR_PRIuSIZE")", (void*)msgs->io, len);1942 dbgmsg (msgs, "flushing outMessages... to %p (length is %zu)", (void*)msgs->io, len); 1943 1943 tr_peerIoWriteBuf (msgs->io, msgs->outMessages, false); 1944 1944 msgs->clientSentAnythingAt = now; … … 2047 2047 if (!err && tr_torrentPieceNeedsCheck (msgs->torrent, req.index)) 2048 2048 if ((err = !tr_torrentCheckPiece (msgs->torrent, req.index))) 2049 tr_torrentSetLocalError (msgs->torrent, _("Please Verify Local Data! Piece #% "TR_PRIuSIZE"is corrupt."), (size_t)req.index);2049 tr_torrentSetLocalError (msgs->torrent, _("Please Verify Local Data! Piece #%zu is corrupt."), (size_t)req.index); 2050 2050 2051 2051 if (err) … … 2148 2148 evbuffer_add_uint8 (out, BT_BITFIELD); 2149 2149 evbuffer_add (out, bytes, byte_count); 2150 dbgmsg (msgs, "sending bitfield... outMessage size is now % "TR_PRIuSIZE, evbuffer_get_length (out));2150 dbgmsg (msgs, "sending bitfield... outMessage size is now %zu", evbuffer_get_length (out)); 2151 2151 pokeBatchPeriod (msgs, IMMEDIATE_PRIORITY_INTERVAL_SECS); 2152 2152 … … 2443 2443 evbuffer_add_buffer (out, payload); 2444 2444 pokeBatchPeriod (msgs, HIGH_PRIORITY_INTERVAL_SECS); 2445 dbgmsg (msgs, "sending a pex message; outMessage size is now % "TR_PRIuSIZE, evbuffer_get_length (out));2445 dbgmsg (msgs, "sending a pex message; outMessage size is now %zu", evbuffer_get_length (out)); 2446 2446 dbgOutMessageLen (msgs); 2447 2447 -
trunk/libtransmission/resume.c
r14532 r14644 164 164 else 165 165 { 166 tr_logAddTorDbg (tor, "Couldn't load DND flags. DND list (%p) has % "TR_PRIuSIZE" children; torrent has %d files",166 tr_logAddTorDbg (tor, "Couldn't load DND flags. DND list (%p) has %zu"" children; torrent has %d files", 167 167 (void*)list, tr_variantListSize (list), (int)n); 168 168 } -
trunk/libtransmission/rpc-server.c
r14633 r14644 371 371 372 372 #if 0 373 fprintf (stderr, "compressed response is %.2f of original (raw==% "TR_PRIuSIZE" bytes; compressed==%"TR_PRIuSIZE")\n",373 fprintf (stderr, "compressed response is %.2f of original (raw==%zu bytes; compressed==%zu)\n", 374 374 (double)evbuffer_get_length (out)/content_len, 375 375 content_len, evbuffer_get_length (out)); -
trunk/libtransmission/rpcimpl.c
r14636 r14644 1650 1650 struct add_torrent_idle_data * data = user_data; 1651 1651 1652 dbgmsg ("torrentAdd: HTTP response code was %ld (%s); response length was % "TR_PRIuSIZE"bytes",1652 dbgmsg ("torrentAdd: HTTP response code was %ld (%s); response length was %zu bytes", 1653 1653 response_code, tr_webGetResponseStr (response_code), response_byte_count); 1654 1654 -
trunk/libtransmission/session.c
r14613 r14644 676 676 usec = min; 677 677 tr_timerAdd (session->nowTimer, 0, usec); 678 /* fprintf (stderr, "time % "TR_PRIuSIZE" sec, %"TR_PRIuSIZE"microsec\n", (size_t)tr_time (), (size_t)tv.tv_usec); */678 /* fprintf (stderr, "time %zu sec, %zu microsec\n", (size_t)tr_time (), (size_t)tv.tv_usec); */ 679 679 } 680 680 … … 1870 1870 assert (tr_isSession (session)); 1871 1871 1872 dbgmsg ("shutting down transmission session %p... now is % "TR_PRIuSIZE", deadline is %"TR_PRIuSIZE, (void*)session, (size_t)time (NULL), (size_t)deadline);1872 dbgmsg ("shutting down transmission session %p... now is %zu, deadline is %zu", (void*)session, (size_t)time (NULL), (size_t)deadline); 1873 1873 1874 1874 /* close the session */ … … 1887 1887 && !deadlineReached (deadline)) 1888 1888 { 1889 dbgmsg ("waiting on port unmap (%p) or announcer (%p)... now % "TR_PRIuSIZE" deadline %"TR_PRIuSIZE,1889 dbgmsg ("waiting on port unmap (%p) or announcer (%p)... now %zu deadline %zu", 1890 1890 (void*)session->shared, (void*)session->announcer, (size_t)time (NULL), (size_t)deadline); 1891 1891 tr_wait_msec (50); … … 1899 1899 { 1900 1900 static bool forced = false; 1901 dbgmsg ("waiting for libtransmission thread to finish... now % "TR_PRIuSIZE" deadline %"TR_PRIuSIZE, (size_t)time (NULL), (size_t)deadline);1901 dbgmsg ("waiting for libtransmission thread to finish... now %zu deadline %zu", (size_t)time (NULL), (size_t)deadline); 1902 1902 tr_wait_msec (100); 1903 1903 -
trunk/libtransmission/torrent.c
r14642 r14644 561 561 562 562 if (allAreSeeds) 563 tr_logAddTorDbg (tor, "Got % "TR_PRIuSIZE"seeds from tracker", event->pexCount);563 tr_logAddTorDbg (tor, "Got %zu seeds from tracker", event->pexCount); 564 564 else 565 tr_logAddTorDbg (tor, "Got % "TR_PRIuSIZE"peers from tracker", event->pexCount);565 tr_logAddTorDbg (tor, "Got %zu peers from tracker", event->pexCount); 566 566 567 567 for (i = 0; i < event->pexCount; ++i) … … 2637 2637 const bool pass = tr_ioTestPiece (tor, pieceIndex); 2638 2638 2639 tr_deeplog_tor (tor, "[LAZY] tr_torrentCheckPiece tested piece % "TR_PRIuSIZE", pass==%d", (size_t)pieceIndex, (int)pass);2639 tr_deeplog_tor (tor, "[LAZY] tr_torrentCheckPiece tested piece %zu, pass==%d", (size_t)pieceIndex, (int)pass); 2640 2640 tr_torrentSetHasPiece (tor, pieceIndex, pass); 2641 2641 tr_torrentSetPieceChecked (tor, pieceIndex); … … 3316 3316 if (tr_torrentPieceIsComplete (tor, p)) 3317 3317 { 3318 tr_logAddTorDbg (tor, "[LAZY] checking just-completed piece % "TR_PRIuSIZE, (size_t)p);3318 tr_logAddTorDbg (tor, "[LAZY] checking just-completed piece %zu", (size_t)p); 3319 3319 3320 3320 if (tr_torrentCheckPiece (tor, p)) -
trunk/libtransmission/tr-utp.c
r14479 r14644 66 66 UTP_Write (struct UTPSocket *socket, size_t count) 67 67 { 68 tr_logAddNamedError (MY_NAME, "UTP_RBDrained (%p, % "TR_PRIuSIZE") was called.", socket, count);69 dbgmsg ("UTP_RBDrained (%p, % "TR_PRIuSIZE") was called.", socket, count);68 tr_logAddNamedError (MY_NAME, "UTP_RBDrained (%p, %zu) was called.", socket, count); 69 dbgmsg ("UTP_RBDrained (%p, %zu) was called.", socket, count); 70 70 assert (0); /* FIXME: this is too much for the long term, but probably needed in the short term */ 71 71 return false; -
trunk/libtransmission/transmission.h
r14633 r14644 30 30 #include <time.h> /* time_t */ 31 31 32 #ifdef _MSC_VER 33 typedef intptr_t ssize_t; 34 #endif 35 36 #if !defined (__cplusplus) 37 #ifdef HAVE_STDBOOL_H 38 #include <stdbool.h> 39 #elif !defined (__bool_true_false_are_defined) 40 #define bool uint8_t 41 #define true 1 42 #define false 0 43 #endif 44 #endif 45 46 #ifndef PRId64 47 #ifdef _WIN32 48 #define PRId64 "I64" 49 #else 50 #define PRId64 "lld" 51 #endif 52 #endif 53 54 #ifndef PRIu64 55 #ifdef _WIN32 56 #define PRIu64 "I64u" 57 #else 58 #define PRIu64 "llu" 59 #endif 60 #endif 61 62 #ifndef PRIu32 63 #ifdef _WIN32 64 #define PRIu32 "u" 65 #else 66 #define PRIu32 "lu" 67 #endif 68 #endif 69 70 #ifndef PRIdMAX 71 #ifdef _WIN32 72 #define PRIdMAX "I64" 73 #else 74 #define PRIdMAX "jd" 75 #endif 76 #endif 77 78 #ifndef TR_PRIuSIZE 79 #ifdef _WIN32 80 #define TR_PRIuSIZE "Iu" 81 #else 82 #define TR_PRIuSIZE "zu" 83 #endif 84 #endif 85 86 #if defined (_MSC_VER) && !defined (__cplusplus) 87 #define inline __inline 32 #ifndef __cplusplus 33 #include <stdbool.h> 88 34 #endif 89 35 -
trunk/libtransmission/trevent.c
r14525 r14644 191 191 struct tr_run_data data; 192 192 const size_t nwant = sizeof (data); 193 const ssize_tngot = piperead (fd, &data, nwant);194 if (!eh->die && (ngot == ( ssize_t)nwant))193 const ev_ssize_t ngot = piperead (fd, &data, nwant); 194 if (!eh->die && (ngot == (ev_ssize_t) nwant)) 195 195 { 196 196 dbgmsg ("invoking function in libevent thread"); … … 325 325 tr_pipe_end_t fd; 326 326 char ch; 327 ssize_t res_1;328 ssize_t res_2;327 ev_ssize_t res_1; 328 ev_ssize_t res_2; 329 329 tr_event_handle * e = session->events; 330 330 struct tr_run_data data; -
trunk/libtransmission/variant-benc.c
r14521 r14644 305 305 const char * str; 306 306 tr_variantGetStr (v, &str, &len); 307 evbuffer_add_printf (evbuf, "% "TR_PRIuSIZE":", len);307 evbuffer_add_printf (evbuf, "%zu:", len); 308 308 evbuffer_add (evbuf, str, len); 309 309 } -
trunk/libtransmission/variant-json.c
r14535 r14644 89 89 if (data->source) 90 90 { 91 tr_logAddError ("JSON parse failed in %s at pos % "TR_PRIuSIZE": %s -- remaining text \"%.16s\"",91 tr_logAddError ("JSON parse failed in %s at pos %zu: %s -- remaining text \"%.16s\"", 92 92 data->source, 93 93 jsn->pos, … … 97 97 else 98 98 { 99 tr_logAddError ("JSON parse failed at pos % "TR_PRIuSIZE": %s -- remaining text \"%.16s\"",99 tr_logAddError ("JSON parse failed at pos %zu: %s -- remaining text \"%.16s\"", 100 100 jsn->pos, 101 101 jsonsl_strerror (error), -
trunk/libtransmission/variant-test.c
r14634 r14644 101 101 102 102 /* string len is designed to overflow */ 103 n = tr_snprintf ((char*)buf, sizeof (buf), "% "TR_PRIuSIZE":boat", (size_t)(SIZE_MAX-2));103 n = tr_snprintf ((char*)buf, sizeof (buf), "%zu:boat", (size_t)(SIZE_MAX-2)); 104 104 err = tr_bencParseStr (buf, buf+n, &end, &str, &len); 105 105 check_int_eq (EILSEQ, err); -
trunk/libtransmission/web.c
r14634 r14644 131 131 132 132 evbuffer_add (task->response, ptr, byteCount); 133 dbgmsg ("wrote % "TR_PRIuSIZE"bytes to task %p's buffer", byteCount, (void*)task);133 dbgmsg ("wrote %zu bytes to task %p's buffer", byteCount, (void*)task); 134 134 return byteCount; 135 135 } -
trunk/utils/edit.c
r14633 r14644 278 278 tr_variant * tier = tr_variantListAddList (announce_list, 1); 279 279 tr_variantListAddStr (tier, url); 280 printf ("\tAdded \"%s\" to \"announce-list\" tier % "TR_PRIuSIZE"\n", url, tr_variantListSize (announce_list));280 printf ("\tAdded \"%s\" to \"announce-list\" tier %zu\n", url, tr_variantListSize (announce_list)); 281 281 changed = true; 282 282 }
Note: See TracChangeset
for help on using the changeset viewer.