/**
* Get the string that corresponds to the specified quark
*/
-const char * tr_quark_get_string (const tr_quark quark, size_t * len);
+const char * tr_quark_get_string (tr_quark quark, size_t * len);
/**
* Create a new quark for the specified string. If a quark already
if (n > 0)
{
int i;
- const tr_info const * inf = tr_torrentInfo (tor);
- const tr_stat const * st = tr_torrentStat ((tr_torrent*)tor);
+ const tr_info * const inf = tr_torrentInfo (tor);
+ const tr_stat * const st = tr_torrentStat ((tr_torrent*)tor);
for (i=0; i<n; ++i)
{
{
/* configure maximum length of search string here */
enum { maxLength = 30 };
- char sstr[maxLength] = { };
+ char sstr[maxLength] = { 0 };
const char* pos;
assert (str != NULL && name != NULL);
CRLF;
char hashString[lengthof (t->info.hashString)];
- char query[lpd_maxDatagramLength + 1] = { };
+ char query[lpd_maxDatagramLength + 1] = { 0 };
if (t == NULL)
return false;
};
struct lpd_protocolVersion ver = { -1, -1 };
- char value[maxValueLen] = { };
- char hashString[maxHashLen] = { };
+ char value[maxValueLen] = { 0 };
+ char hashString[maxHashLen] = { 0 };
int res = 0, peerPort = 0;
if (peer != NULL && msg != NULL)
int addrLen = sizeof foreignAddr;
/* be paranoid enough about zero terminating the foreign string */
- char foreignMsg[lpd_maxDatagramLength + 1] = { };
+ char foreignMsg[lpd_maxDatagramLength + 1] = { 0 };
/* process local announcement from foreign peer */
int res = recvfrom (lpd_socket, foreignMsg, lpd_maxDatagramLength,