Changeset 14192


Ignore:
Timestamp:
Sep 8, 2013, 5:58:14 PM (8 years ago)
Author:
jordan
Message:

fix a handful of CL warnings & errors in libtransmission. mikedld

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/quark.h

    r14077 r14192  
    415415 * Get the string that corresponds to the specified quark
    416416 */
    417 const char * tr_quark_get_string (const tr_quark quark, size_t * len);
     417const char * tr_quark_get_string (tr_quark quark, size_t * len);
    418418
    419419/**
  • trunk/libtransmission/rpcimpl.c

    r14190 r14192  
    901901    {
    902902      int i;
    903       const tr_info const * inf = tr_torrentInfo (tor);
    904       const tr_stat const * st = tr_torrentStat ((tr_torrent*)tor);
     903      const tr_info * const inf = tr_torrentInfo (tor);
     904      const tr_stat * const st = tr_torrentStat ((tr_torrent*)tor);
    905905
    906906      for (i=0; i<n; ++i)
  • trunk/libtransmission/tr-lpd.c

    r14187 r14192  
    217217    /* configure maximum length of search string here */
    218218    enum { maxLength = 30 };
    219     char sstr[maxLength] = { };
     219    char sstr[maxLength] = { 0 };
    220220    const char* pos;
    221221
     
    446446
    447447    char hashString[lengthof (t->info.hashString)];
    448     char query[lpd_maxDatagramLength + 1] = { };
     448    char query[lpd_maxDatagramLength + 1] = { 0 };
    449449
    450450    if (t == NULL)
     
    500500
    501501    struct lpd_protocolVersion ver = { -1, -1 };
    502     char value[maxValueLen] = { };
    503     char hashString[maxHashLen] = { };
     502    char value[maxValueLen] = { 0 };
     503    char hashString[maxHashLen] = { 0 };
    504504    int res = 0, peerPort = 0;
    505505
     
    645645
    646646        /* be paranoid enough about zero terminating the foreign string */
    647         char foreignMsg[lpd_maxDatagramLength + 1] = { };
     647        char foreignMsg[lpd_maxDatagramLength + 1] = { 0 };
    648648
    649649        /* process local announcement from foreign peer */
Note: See TracChangeset for help on using the changeset viewer.