make the el-compiler runtime compile again
The loopback/API-key hardening carried in this file since 2026-07-15 called el_http_request_authorized and el_http_send_401 from http_worker with no forward declarations, so the calls were implicit and the later static definitions conflicted. The file did not build. Two prototypes fix it. Worth naming the pattern: uncommitted work is invisible to every check that would have caught this. Three weeks of desktop security hardening was neither committed nor compiling, and nothing reported either fact.
This commit is contained in:
@@ -1545,6 +1545,17 @@ typedef struct {
|
||||
#endif
|
||||
} HttpWorkerArg;
|
||||
|
||||
/* Forward declarations for the loopback/API-key hardening helpers defined
|
||||
* further down. Without these, http_worker's calls below were implicit
|
||||
* declarations and the later `static` definitions conflicted with them — this
|
||||
* file did not compile at all. (2026-08-08 self-review: the hardening work
|
||||
* they belong to had been sitting uncommitted in the working tree since
|
||||
* 2026-07-15 in exactly this non-building state, which is presumably why it
|
||||
* was never committed. Adding the two prototypes is the whole fix.) */
|
||||
static int el_http_request_authorized(const char* method, const char* path,
|
||||
const char* hdr_block);
|
||||
static void el_http_send_401(int fd);
|
||||
|
||||
static void* http_worker(void* arg) {
|
||||
HttpWorkerArg* a = (HttpWorkerArg*)arg;
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user