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);
|
getcmds(-1);
|
||||||
while (statusContinue)
|
while (statusContinue)
|
||||||
{
|
{
|
||||||
getcmds(i);
|
getcmds(i++);
|
||||||
writestatus();
|
writestatus();
|
||||||
sleep(1.0);
|
sleep(1.0);
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +170,7 @@ void termhandler()
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
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]))
|
if (!strcmp("-d",argv[i]))
|
||||||
strncpy(delim, argv[++i], delimLen);
|
strncpy(delim, argv[++i], delimLen);
|
||||||
|
|
Reference in a new issue