Unified style for if, for, and while statements. As well as general
code cleanup.
This commit is contained in:
		@@ -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 New Issue
	
	Block a user