fix: cleanup
This commit is contained in:
parent
8679bfe680
commit
be84c0e4c2
9 changed files with 5 additions and 20 deletions
|
@ -1,6 +1,5 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstring>
|
||||
#include <trantor/utils/Logger.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include <cstdio>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include "period.h"
|
||||
|
||||
period::period(uint16_t start, uint16_t end)
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#include <cstdio>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <drogon/drogon.h>
|
||||
#include "period_list.h"
|
||||
|
||||
period_list::period_list()
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstring>
|
||||
#include <trantor/utils/Logger.h>
|
||||
#include <helpers.h>
|
||||
#include "relay_dbo.h"
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
//
|
||||
// Created by tobias on 08/07/19.
|
||||
//
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstring>
|
||||
#include <trantor/utils/Logger.h>
|
||||
#include <helpers.h>
|
||||
|
@ -15,7 +9,7 @@ static bool schedule_db_update_insert(schedule_dbo *schedule, sqlite3_stmt *stmt
|
|||
{
|
||||
int rc;
|
||||
uint16_t *periods_blob = schedule->periods->to_db_blob();
|
||||
int blob_size = sizeof(uint16_t) * ((periods_blob[0] * 2) + 1);
|
||||
int blob_size = (int)sizeof(uint16_t) * ((periods_blob[0] * 2) + 1);
|
||||
|
||||
sqlite3_bind_text(stmt, 1, schedule->id, -1, SQLITE_STATIC);
|
||||
sqlite3_bind_text(stmt, 2, schedule->name, -1, SQLITE_STATIC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue