mirror of https://github.com/xzeldon/htop.git
Drop unnecessary usage of comma operator
This commit is contained in:
parent
4296e74ada
commit
4a1f3fca96
|
@ -270,12 +270,14 @@ static MaskItem *AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u
|
||||||
for (unsigned i = 1; i < depth; i++) {
|
for (unsigned i = 1; i < depth; i++) {
|
||||||
xSnprintf(&indent_buf[off], left, "%s ", (indent & (1u << i)) ? CRT_treeStr[TREE_STR_VERT] : " ");
|
xSnprintf(&indent_buf[off], left, "%s ", (indent & (1u << i)) ? CRT_treeStr[TREE_STR_VERT] : " ");
|
||||||
size_t len = strlen(&indent_buf[off]);
|
size_t len = strlen(&indent_buf[off]);
|
||||||
off += len, left -= len;
|
off += len;
|
||||||
|
left -= len;
|
||||||
}
|
}
|
||||||
xSnprintf(&indent_buf[off], left, "%s",
|
xSnprintf(&indent_buf[off], left, "%s",
|
||||||
obj->next_sibling ? CRT_treeStr[TREE_STR_RTEE] : CRT_treeStr[TREE_STR_BEND]);
|
obj->next_sibling ? CRT_treeStr[TREE_STR_RTEE] : CRT_treeStr[TREE_STR_BEND]);
|
||||||
size_t len = strlen(&indent_buf[off]);
|
size_t len = strlen(&indent_buf[off]);
|
||||||
off += len, left -= len;
|
off += len;
|
||||||
|
left -= len;
|
||||||
}
|
}
|
||||||
|
|
||||||
xSnprintf(buf, 64, "%s %s%u", type_name, index_prefix, index);
|
xSnprintf(buf, 64, "%s %s%u", type_name, index_prefix, index);
|
||||||
|
|
Loading…
Reference in New Issue