From 1a2b495ff761562522ae0a7d321df587ef0e18a4 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Tue, 19 Apr 2022 21:35:32 +0200 Subject: [PATCH] changing types --- SourceCode/arduino/lib/Firewall/esp32Firewall.cpp | 4 ++-- SourceCode/arduino/lib/Firewall/esp32Firewall.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SourceCode/arduino/lib/Firewall/esp32Firewall.cpp b/SourceCode/arduino/lib/Firewall/esp32Firewall.cpp index e860cd7..14236fd 100644 --- a/SourceCode/arduino/lib/Firewall/esp32Firewall.cpp +++ b/SourceCode/arduino/lib/Firewall/esp32Firewall.cpp @@ -252,14 +252,14 @@ void esp32Firewall::setup_routing() this->firewall_api->setDefaultNode(not_found); } -void esp32Firewall::json_generic_response(HTTPResponse *response, String serialized, int response_code) +void esp32Firewall::json_generic_response(HTTPResponse *response, String serialized, const uint16_t response_code) { response->setHeader("Content-Type", "application/json"); response->setStatusCode(response_code); response->println(serialized); } -void esp32Firewall::json_message_response(HTTPResponse *response, String message, int response_code) +void esp32Firewall::json_message_response(HTTPResponse *response, String message, const uint16_t response_code) { response->setHeader("Content-Type", "application/json"); response->setStatusCode(response_code); diff --git a/SourceCode/arduino/lib/Firewall/esp32Firewall.hpp b/SourceCode/arduino/lib/Firewall/esp32Firewall.hpp index 39b085d..5dd9ae6 100644 --- a/SourceCode/arduino/lib/Firewall/esp32Firewall.hpp +++ b/SourceCode/arduino/lib/Firewall/esp32Firewall.hpp @@ -35,7 +35,7 @@ class esp32Firewall // EEPROM void setup_eeprom(); - void eeprom_write_firewall_rule(firewall_rule_t *rule); + void eeprom_write_firewall_rule(firewall_rule_t *); void eeprom_write_firewall_rules(); void eeprom_read_firewall_rule(uint8_t &, uint8_t &); void eeprom_read_firewall_rules(); @@ -48,8 +48,8 @@ class esp32Firewall // Firewall-API Actions void setup_certificate(); void setup_routing(); - void json_generic_response(HTTPResponse *, String, int); - void json_message_response(HTTPResponse *, String, int); + void json_generic_response(HTTPResponse *, String, const uint16_t); + void json_message_response(HTTPResponse *, String, const uint16_t); String construct_json_firewall_rule(firewall_rule_t *); String construct_json_firewall(); void not_found_handler(HTTPRequest *, HTTPResponse *);