Small improvement in updatestatus
This commit is contained in:
parent
637e252c01
commit
e0fa5c3700
|
@ -215,7 +215,7 @@ updatestatus()
|
||||||
|
|
||||||
/* checking half of the function */
|
/* checking half of the function */
|
||||||
/* skip empty blocks */
|
/* skip empty blocks */
|
||||||
for (;;) {
|
for (;; current++) {
|
||||||
if (!current->pathu)
|
if (!current->pathu)
|
||||||
return 0;
|
return 0;
|
||||||
/* skip delimiter for the first non-empty block */
|
/* skip delimiter for the first non-empty block */
|
||||||
|
@ -226,7 +226,6 @@ updatestatus()
|
||||||
current++;
|
current++;
|
||||||
goto update0;
|
goto update0;
|
||||||
}
|
}
|
||||||
current++;
|
|
||||||
}
|
}
|
||||||
/* main loop */
|
/* main loop */
|
||||||
for (; current->pathu; current++) {
|
for (; current->pathu; current++) {
|
||||||
|
@ -261,14 +260,13 @@ skipdelimc:
|
||||||
update0:
|
update0:
|
||||||
/* updating half of the function */
|
/* updating half of the function */
|
||||||
/* skip empty blocks */
|
/* skip empty blocks */
|
||||||
for (;;) {
|
for (;; current++) {
|
||||||
if (!current->pathu)
|
if (!current->pathu)
|
||||||
return 1;
|
return 1;
|
||||||
/* skip delimiter for the first non-empty block */
|
/* skip delimiter for the first non-empty block */
|
||||||
if (*current->cmdoutcur != '\n' && *current->cmdoutcur != '\0')
|
if (*current->cmdoutcur != '\n' && *current->cmdoutcur != '\0')
|
||||||
goto skipdelimu;
|
goto skipdelimu;
|
||||||
*current->cmdoutprv = *current->cmdoutcur;
|
*current->cmdoutprv = *current->cmdoutcur;
|
||||||
current++;
|
|
||||||
}
|
}
|
||||||
update1:
|
update1:
|
||||||
/* main loop */
|
/* main loop */
|
||||||
|
|
Loading…
Reference in a new issue