Skip to content

Commit c618e9c

Browse files
Copilotdorkmo
andcommitted
Remove duplicate forward declaration for respondStatus, keep single declaration before requireValidPin
Co-authored-by: dorkmo <[email protected]>
1 parent 0b76c5f commit c618e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TankAlarm-112025-Server-BluesOpta/TankAlarm-112025-Server-BluesOpta.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static bool pinMatches(const char *pin) {
388388
return strncmp(pin, gConfig.configPin, sizeof(gConfig.configPin)) == 0;
389389
}
390390

391-
// Forward declaration for respondStatus (used by requireValidPin below)
391+
// Forward declaration for respondStatus (defined later in the web server section)
392392
static void respondStatus(EthernetClient &client, int status, const String &message);
393393

394394
// Require that a valid admin PIN is configured and provided; respond with 403/400 on failure.
@@ -4866,7 +4866,7 @@ static void handleWebRequests();
48664866
static bool readHttpRequest(EthernetClient &client, String &method, String &path, String &body, size_t &contentLength, bool &bodyTooLarge);
48674867
static void respondHtml(EthernetClient &client, const String &body);
48684868
static void respondJson(EthernetClient &client, const String &body, int status = 200);
4869-
static void respondStatus(EthernetClient &client, int status, const String &message);
4869+
// Note: respondStatus is forward-declared earlier in the file (before requireValidPin)
48704870
static void sendDashboard(EthernetClient &client);
48714871
static void sendClientConsole(EthernetClient &client);
48724872
static void sendConfigGenerator(EthernetClient &client);

0 commit comments

Comments
 (0)