mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
OTA rollback nits
This commit is contained in:
1 parent
b5b6d9c8da
commit
c0723249b4
13 files changed
+507
-226
No files matched your search
@@ -279,11 +279,6 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
||||
|
||||
void mg_mgr_init(struct mg_mgr *mgr) {
|
||||
memset(mgr, 0, sizeof(*mgr));
|
||||
// Anchor mg_fw_version: a real store into a struct field the optimiser
|
||||
// can't elide forces the linker to keep the section alive even when no
|
||||
// OTA polling code runs it. Callers that want mgr->userdata for their own
|
||||
// purposes simply overwrite it after this call returns
|
||||
mgr->userdata = (void *) mg_fw_version;
|
||||
#if MG_ENABLE_EPOLL
|
||||
if ((mgr->epoll_fd = epoll_create1(EPOLL_CLOEXEC)) < 0)
|
||||
MG_ERROR(("epoll_create1 errno %d", errno));
|
||||
|
||||
Reference in new issue
Block a user