mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Don't declare variables in for loops
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ int main (int argc, char **argv) {
|
||||
while((size = recv(socketfd, buffer, BUF-1, 0)) > -1)
|
||||
{
|
||||
// Print received data to stdout
|
||||
for(int i = 0; i < size; ++i) {
|
||||
int i;
|
||||
for(i = 0; i < size; ++i) {
|
||||
printf("%02x ", (unsigned char) buffer[i]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user