Remove unused includes. Clarify the intention of a while(); Move a local variable to avoid potential name-confusion.
Remove unused includes.
Clarify the intention of a while();
Move a local variable to avoid potential name-confusion.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase