* MISRA C++:2008, 8-0-1 - An init-declarator-list or a member-declarator-list
shall consist of a single init-declarator or member-declarator respectively
* CERT, DCL52-J. - Do not declare more than one variable per declaration
* CERT, DCL04-C. - Do not declare more than one variable per declaration
{
int n;
int tier;
- GtkTextIter start, end;
+ GtkTextIter start;
+ GtkTextIter end;
char* dir;
char* base;
char* tracker_text;
if (haveDown)
{
- char dnStr[32], upStr[32];
+ char dnStr[32];
+ char upStr[32];
tr_formatter_speed_KBps(dnStr, downloadSpeed_KBps, sizeof(dnStr));
tr_formatter_speed_KBps(upStr, uploadSpeed_KBps, sizeof(upStr));
if (y_offset != NULL)
{
- int xpad, ypad;
+ int xpad;
+ int ypad;
gtk_cell_renderer_get_padding(cell, &xpad, &ypad);
*y_offset = cell_area ? (int)((cell_area->height - (ypad * 2 + h)) / 2.0) : 0;
}
while (bytesLeft > 0)
{
uint64_t const bytesThisPass = MIN(bytesLeft, buflen);
- uint64_t numRead, bytesWritten;
+ uint64_t numRead;
+ uint64_t bytesWritten;
if (!tr_sys_file_read(in, buf, bytesThisPass, &numRead, error))
{