Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated code and silence a harmless warning #2131

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ static struct {

int api_handler(struct mg_connection *conn, void *ignored)
{
// Unused, but required by CivetWeb
// This is a no-op but suppresses the warning "unused parameter
// 'ignored'" on modern compilers
(void)ignored;

// Prepare API info struct
struct ftl_conn api = {
conn,
Expand Down
10 changes: 0 additions & 10 deletions src/database/database-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,6 @@ void *DB_thread(void *val)
// Intermediate cancellation-point
BREAK_IF_KILLED();

// Import alias-clients
if(get_and_clear_event(REIMPORT_ALIASCLIENTS))
{
lock_shm();
reimport_aliasclients(db);
unlock_shm();
}

BREAK_IF_KILLED();

// Sleep 0.1 sec
thread_sleepms(DB, 100);
}
Expand Down
Loading