From 08d42688d851eb134da496be721e234f53ff8d0b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 11 Jan 2026 12:48:05 +0100 Subject: fix warnings --- include/administration.hpp | 12 ++++++------ include/config.hpp | 2 +- include/exporter.hpp | 4 ++-- include/importer.hpp | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/administration.hpp b/include/administration.hpp index 51e72d8..be3f6c0 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -92,7 +92,7 @@ typedef struct typedef struct { char name[MAX_LEN_LONG_DESC]; - address address; + address addr; } delivery_info; typedef enum @@ -105,7 +105,7 @@ typedef struct { char id[MAX_LEN_ID]; // C/[id] char name[MAX_LEN_LONG_DESC]; - address address; + address addr; contact_type type; char taxid[MAX_LEN_TAXID]; // Required for business contact char businessid[MAX_LEN_BUSINESSID]; // Required for business contact @@ -264,7 +264,7 @@ typedef struct char payee_account_name[MAX_LEN_LONG_DESC]; // Name of account where payment is made to. char service_provider_id[MAX_LEN_LONG_DESC]; // BIC or national clearing code. char payer_bank_account[MAX_LEN_BANK]; // Sender IBAN or BBAN account. - payment_method payment_method; + payment_method method; } payment_information; typedef struct @@ -293,7 +293,7 @@ typedef struct time_t issued_at; time_t expires_at; time_t delivered_at; - document document; // path to copy of document for incomming invoice. + document orig_document; // path to copy of document for incomming invoice. char project_id[MAX_LEN_ID]; // Optional. char cost_center_id[MAX_LEN_ID]; // For incomming invoices. optional. list_t billing_items; @@ -455,9 +455,9 @@ typedef struct // Service providers. u32 ai_service_count; ai_service all_ai_services[MAX_AI_SERVICES]; - ai_service ai_service; // @TODO rename to active_ai_service + ai_service active_ai_service; - email_service email_service; + email_service active_email_service; } ledger; // Add/Update result codes. diff --git a/include/config.hpp b/include/config.hpp index fb1d304..b7b38d5 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -31,7 +31,7 @@ #define u64 uint64_t #define SIMULATE_EMAIL 1 -#define SIMULATE_SLOW_DISK 1 +#define SIMULATE_SLOW_DISK 0 #define SIMULATE_WRITE_FAILURE 0 #define PROGRAM_VERSION "0.1.0" // major.minor.patch diff --git a/include/exporter.hpp b/include/exporter.hpp index 3ac57b0..d328bf6 100644 --- a/include/exporter.hpp +++ b/include/exporter.hpp @@ -32,7 +32,7 @@ namespace exporter { EXPORT_STARTING, EXPORT_WAITING_FOR_RESPONSE, EXPORT_DONE, - } status; + } export_status; typedef void (*send_email_callback)(e_err err); @@ -41,7 +41,7 @@ namespace exporter { time_t started_at; time_t done_at; e_err error; - status status; + export_status status; const char* sender; const char* recipient; const char* subject; diff --git a/include/importer.hpp b/include/importer.hpp index b432b45..731d1ff 100644 --- a/include/importer.hpp +++ b/include/importer.hpp @@ -37,7 +37,7 @@ namespace importer { IMPORT_QUERYING, IMPORT_WAITING_FOR_RESPONSE, IMPORT_DONE, - } status; + } import_status; typedef struct { @@ -45,14 +45,14 @@ namespace importer { invoice result; char file_path[MAX_LEN_PATH]; i_err error; - status status; + import_status status; } invoice_request; typedef struct { time_t started_at; i_err error; - status status; + import_status status; u32 result_count; char result[MAX_MODEL_LIST_RESULT_COUNT][MAX_LEN_SHORT_DESC]; ai_provider service; @@ -77,7 +77,7 @@ namespace importer { } email_provider_impl; const char* error_to_string(i_err error); - const char* status_to_string(status status); + const char* status_to_string(import_status status); ai_provider_impl get_ai_provider_implementation(ai_provider provider); -- cgit v1.2.3-70-g09d2