Changeset 14203


Ignore:
Timestamp:
Sep 9, 2013, 1:32:09 AM (8 years ago)
Author:
jordan
Message:

fix pedantic compiler warnings

Location:
trunk/libtransmission
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-udp.c

    r14190 r14203  
    548548        struct tau_announce_request * req = tr_ptrArrayNth (reqs, i);
    549549        if (!req->sent_at) {
    550             dbgmsg (tracker->key, "sending announce req %p", req);
     550            dbgmsg (tracker->key, "sending announce req %p", (void*)req);
    551551            req->sent_at = now;
    552552            tau_tracker_send_request (tracker, req->payload, req->payload_len);
     
    564564        struct tau_scrape_request * req = tr_ptrArrayNth (reqs, i);
    565565        if (!req->sent_at) {
    566             dbgmsg (tracker->key, "sending scrape req %p", req);
     566            dbgmsg (tracker->key, "sending scrape req %p", (void*)req);
    567567            req->sent_at = now;
    568568            tau_tracker_send_request (tracker, req->payload, req->payload_len);
     
    629629        struct tau_announce_request * req = tr_ptrArrayNth (reqs, i);
    630630        if (cancel_all || (req->created_at + TAU_REQUEST_TTL < now)) {
    631             dbgmsg (tracker->key, "timeout announce req %p", req);
     631            dbgmsg (tracker->key, "timeout announce req %p", (void*)req);
    632632            tau_announce_request_fail (req, false, true, NULL);
    633633            tau_announce_request_free (req);
     
    642642        struct tau_scrape_request * req = tr_ptrArrayNth (reqs, i);
    643643        if (cancel_all || (req->created_at + TAU_REQUEST_TTL < now)) {
    644             dbgmsg (tracker->key, "timeout scrape req %p", req);
     644            dbgmsg (tracker->key, "timeout scrape req %p", (void*)req);
    645645            tau_scrape_request_fail (req, false, true, NULL);
    646646            tau_scrape_request_free (req);
     
    692692
    693693    dbgmsg (tracker->key, "addr %p -- connected %d (%"TR_PRIuSIZE" %"TR_PRIuSIZE") -- connecting_at %"TR_PRIuSIZE,
    694             tracker->addr,
    695           (int)(tracker->connection_expiration_time > now), (size_t)tracker->connection_expiration_time, (size_t)now,
    696           (size_t)tracker->connecting_at);
     694            (void*)tracker->addr,
     695            (int)(tracker->connection_expiration_time > now),
     696            (size_t)tracker->connection_expiration_time,
     697            (size_t)now,
     698            (size_t)tracker->connecting_at);
    697699
    698700    /* also need a valid connection ID... */
  • trunk/libtransmission/peer-io.c

    r14190 r14203  
    631631    tr_bandwidthConstruct (&io->bandwidth, session, parent);
    632632    tr_bandwidthSetPeer (&io->bandwidth, io);
    633     dbgmsg (io, "bandwidth is %p; its parent is %p", &io->bandwidth, parent);
    634     dbgmsg (io, "socket is %d, utp_socket is %p", socket, utp_socket);
     633    dbgmsg (io, "bandwidth is %p; its parent is %p", (void*)&io->bandwidth, (void*)parent);
     634    dbgmsg (io, "socket is %d, utp_socket is %p", socket, (void*)utp_socket);
    635635
    636636    if (io->socket >= 0) {
  • trunk/libtransmission/peer-msgs.c

    r14190 r14203  
    19231923        const size_t len = evbuffer_get_length (msgs->outMessages);
    19241924        /* flush the protocol messages */
    1925         dbgmsg (msgs, "flushing outMessages... to %p (length is %"TR_PRIuSIZE")", msgs->io, len);
     1925        dbgmsg (msgs, "flushing outMessages... to %p (length is %"TR_PRIuSIZE")", (void*)msgs->io, len);
    19261926        tr_peerIoWriteBuf (msgs->io, msgs->outMessages, false);
    19271927        msgs->clientSentAnythingAt = now;
  • trunk/libtransmission/resume.c

    r14190 r14203  
    166166    {
    167167      tr_logAddTorDbg (tor, "Couldn't load DND flags. DND list (%p) has %"TR_PRIuSIZE" children; torrent has %d files",
    168                        list, tr_variantListSize (list), (int)n);
     168                       (void*)list, tr_variantListSize (list), (int)n);
    169169    }
    170170
  • trunk/libtransmission/session.c

    r14193 r14203  
    694694
    695695  dbgmsg ("tr_sessionInit: the session's top-level bandwidth object is %p",
    696           &session->bandwidth);
     696          (void*)&session->bandwidth);
    697697
    698698  tr_variantInitDict (&settings, 0);
     
    18691869  assert (tr_isSession (session));
    18701870
    1871   dbgmsg ("shutting down transmission session %p... now is %"TR_PRIuSIZE", deadline is %"TR_PRIuSIZE, session, (size_t)time (NULL), (size_t)deadline);
     1871  dbgmsg ("shutting down transmission session %p... now is %"TR_PRIuSIZE", deadline is %"TR_PRIuSIZE, (void*)session, (size_t)time (NULL), (size_t)deadline);
    18721872
    18731873  /* close the session */
     
    18871887    {
    18881888      dbgmsg ("waiting on port unmap (%p) or announcer (%p)... now %"TR_PRIuSIZE" deadline %"TR_PRIuSIZE,
    1889               session->shared, session->announcer, (size_t)time (NULL), (size_t)deadline);
     1889              (void*)session->shared, (void*)session->announcer, (size_t)time (NULL), (size_t)deadline);
    18901890      tr_wait_msec (50);
    18911891    }
  • trunk/libtransmission/torrent.c

    r14190 r14203  
    28782878  tr_ptrArray files = TR_PTR_ARRAY_INIT;
    28792879  tr_ptrArray folders = TR_PTR_ARRAY_INIT;
    2880   const void * const vstrcmp = strcmp;
     2880  PtrArrayCompareFunc vstrcmp = (PtrArrayCompareFunc)strcmp;
    28812881  const char * const top = tor->currentDir;
    28822882
  • trunk/libtransmission/web.c

    r14190 r14203  
    134134
    135135  evbuffer_add (task->response, ptr, byteCount);
    136   dbgmsg ("wrote %"TR_PRIuSIZE" bytes to task %p's buffer", byteCount, task);
     136  dbgmsg ("wrote %"TR_PRIuSIZE" bytes to task %p's buffer", byteCount, (void*)task);
    137137  return byteCount;
    138138}
     
    238238{
    239239  struct tr_web_task * task = vtask;
    240   dbgmsg ("finished web task %p; got %ld", task, task->code);
     240  dbgmsg ("finished web task %p; got %ld", (void*)task, task->code);
    241241
    242242  if (task->done_func != NULL)
Note: See TracChangeset for help on using the changeset viewer.