From a1db02b751b67c2751cf4fa46d9d45aa92cfeabd Mon Sep 17 00:00:00 2001 From: "Frederic.Pillon" Date: Mon, 26 Nov 2018 09:52:44 +0100 Subject: [PATCH] Use bool instead of boolean https://github.com/arduino/Arduino/issues/4673 Signed-off-by: Frederic.Pillon --- examples/AdvancedChatServer/AdvancedChatServer.ino | 2 +- .../BarometricPressureWebServer/BarometricPressureWebServer.ino | 2 +- examples/ChatServer/ChatServer.ino | 2 +- examples/DhcpChatServer/DhcpChatServer.ino | 2 +- examples/WebServer/WebServer.ino | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/AdvancedChatServer/AdvancedChatServer.ino b/examples/AdvancedChatServer/AdvancedChatServer.ino index 1680233..cdb236a 100644 --- a/examples/AdvancedChatServer/AdvancedChatServer.ino +++ b/examples/AdvancedChatServer/AdvancedChatServer.ino @@ -63,7 +63,7 @@ void loop() { // when the client sends the first byte, say hello: if (client) { - boolean newClient = true; + bool newClient = true; for (byte i = 0; i < 4; i++) { //check whether this client refers to the same socket as one of the existing instances: if (clients[i] == client) { diff --git a/examples/BarometricPressureWebServer/BarometricPressureWebServer.ino b/examples/BarometricPressureWebServer/BarometricPressureWebServer.ino index 96dbcbc..666f527 100644 --- a/examples/BarometricPressureWebServer/BarometricPressureWebServer.ino +++ b/examples/BarometricPressureWebServer/BarometricPressureWebServer.ino @@ -128,7 +128,7 @@ void listenForEthernetClients() { if (client) { Serial.println("Got a client"); // an http request ends with a blank line - boolean currentLineIsBlank = true; + bool currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); diff --git a/examples/ChatServer/ChatServer.ino b/examples/ChatServer/ChatServer.ino index 5c3aa3d..cffbabf 100644 --- a/examples/ChatServer/ChatServer.ino +++ b/examples/ChatServer/ChatServer.ino @@ -33,7 +33,7 @@ IPAddress subnet(255, 255, 0, 0); // telnet defaults to port 23 EthernetServer server(23); -boolean alreadyConnected = false; // whether or not the client was connected previously +bool alreadyConnected = false; // whether or not the client was connected previously void setup() { // initialize the ethernet device diff --git a/examples/DhcpChatServer/DhcpChatServer.ino b/examples/DhcpChatServer/DhcpChatServer.ino index 50ac63f..d2561fb 100644 --- a/examples/DhcpChatServer/DhcpChatServer.ino +++ b/examples/DhcpChatServer/DhcpChatServer.ino @@ -35,7 +35,7 @@ IPAddress subnet(255, 255, 0, 0); // telnet defaults to port 23 EthernetServer server(23); -boolean gotAMessage = false; // whether or not you got a message from the client yet +bool gotAMessage = false; // whether or not you got a message from the client yet void setup() { // Open serial communications and wait for port to open: diff --git a/examples/WebServer/WebServer.ino b/examples/WebServer/WebServer.ino index e47900c..9030ee4 100644 --- a/examples/WebServer/WebServer.ino +++ b/examples/WebServer/WebServer.ino @@ -53,7 +53,7 @@ void loop() { if (client) { Serial.println("new client"); // an http request ends with a blank line - boolean currentLineIsBlank = true; + bool currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read();