Unified style for if, for, and while statements. As well as general
code cleanup.
This commit is contained in:
parent
b12722ab48
commit
416a36d636
1 changed files with 8 additions and 9 deletions
|
@ -143,10 +143,9 @@ void statusloop()
|
|||
getcmds(-1);
|
||||
while (statusContinue)
|
||||
{
|
||||
getcmds(i);
|
||||
getcmds(i++);
|
||||
writestatus();
|
||||
sleep(1.0);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,7 +170,7 @@ void termhandler()
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
for(int i = 0; i < argc; i++)
|
||||
for (int i = 0; i < argc; i++) //Handle command line arguments
|
||||
{
|
||||
if (!strcmp("-d",argv[i]))
|
||||
strncpy(delim, argv[++i], delimLen);
|
||||
|
|
Reference in a new issue