Skip to content

Commit

Permalink
Use bool instead of boolean
Browse files Browse the repository at this point in the history
arduino/Arduino#4673

Signed-off-by: Frederic.Pillon <[email protected]>
  • Loading branch information
fpistm committed Nov 26, 2018
1 parent d1bb810 commit a1db02b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/AdvancedChatServer/AdvancedChatServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/ChatServer/ChatServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/DhcpChatServer/DhcpChatServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/WebServer/WebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a1db02b

Please sign in to comment.