Changeset 14192
- Timestamp:
- Sep 8, 2013, 5:58:14 PM (9 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/quark.h
r14077 r14192 415 415 * Get the string that corresponds to the specified quark 416 416 */ 417 const char * tr_quark_get_string ( consttr_quark quark, size_t * len);417 const char * tr_quark_get_string (tr_quark quark, size_t * len); 418 418 419 419 /** -
trunk/libtransmission/rpcimpl.c
r14190 r14192 901 901 { 902 902 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); 905 905 906 906 for (i=0; i<n; ++i) -
trunk/libtransmission/tr-lpd.c
r14187 r14192 217 217 /* configure maximum length of search string here */ 218 218 enum { maxLength = 30 }; 219 char sstr[maxLength] = { };219 char sstr[maxLength] = { 0 }; 220 220 const char* pos; 221 221 … … 446 446 447 447 char hashString[lengthof (t->info.hashString)]; 448 char query[lpd_maxDatagramLength + 1] = { };448 char query[lpd_maxDatagramLength + 1] = { 0 }; 449 449 450 450 if (t == NULL) … … 500 500 501 501 struct lpd_protocolVersion ver = { -1, -1 }; 502 char value[maxValueLen] = { };503 char hashString[maxHashLen] = { };502 char value[maxValueLen] = { 0 }; 503 char hashString[maxHashLen] = { 0 }; 504 504 int res = 0, peerPort = 0; 505 505 … … 645 645 646 646 /* be paranoid enough about zero terminating the foreign string */ 647 char foreignMsg[lpd_maxDatagramLength + 1] = { };647 char foreignMsg[lpd_maxDatagramLength + 1] = { 0 }; 648 648 649 649 /* process local announcement from foreign peer */
Note: See TracChangeset
for help on using the changeset viewer.