Skip to content

Commit a1db02b

Browse files
committed
Use bool instead of boolean
arduino/Arduino#4673 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent d1bb810 commit a1db02b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/AdvancedChatServer/AdvancedChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void loop() {
6363
// when the client sends the first byte, say hello:
6464
if (client) {
6565

66-
boolean newClient = true;
66+
bool newClient = true;
6767
for (byte i = 0; i < 4; i++) {
6868
//check whether this client refers to the same socket as one of the existing instances:
6969
if (clients[i] == client) {

examples/BarometricPressureWebServer/BarometricPressureWebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void listenForEthernetClients() {
128128
if (client) {
129129
Serial.println("Got a client");
130130
// an http request ends with a blank line
131-
boolean currentLineIsBlank = true;
131+
bool currentLineIsBlank = true;
132132
while (client.connected()) {
133133
if (client.available()) {
134134
char c = client.read();

examples/ChatServer/ChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ IPAddress subnet(255, 255, 0, 0);
3333

3434
// telnet defaults to port 23
3535
EthernetServer server(23);
36-
boolean alreadyConnected = false; // whether or not the client was connected previously
36+
bool alreadyConnected = false; // whether or not the client was connected previously
3737

3838
void setup() {
3939
// initialize the ethernet device

examples/DhcpChatServer/DhcpChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ IPAddress subnet(255, 255, 0, 0);
3535

3636
// telnet defaults to port 23
3737
EthernetServer server(23);
38-
boolean gotAMessage = false; // whether or not you got a message from the client yet
38+
bool gotAMessage = false; // whether or not you got a message from the client yet
3939

4040
void setup() {
4141
// Open serial communications and wait for port to open:

examples/WebServer/WebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void loop() {
5353
if (client) {
5454
Serial.println("new client");
5555
// an http request ends with a blank line
56-
boolean currentLineIsBlank = true;
56+
bool currentLineIsBlank = true;
5757
while (client.connected()) {
5858
if (client.available()) {
5959
char c = client.read();

0 commit comments

Comments
 (0)