From 08d42688d851eb134da496be721e234f53ff8d0b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 11 Jan 2026 12:48:05 +0100 Subject: fix warnings --- tests/test_helper.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/test_helper.cpp') diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp index ada084b..9dc9898 100644 --- a/tests/test_helper.cpp +++ b/tests/test_helper.cpp @@ -19,11 +19,11 @@ static contact _create_nl_business() { contact pw = administration::contact_create_empty(); strops::copy(pw.name, "Dutch Company BV", sizeof(pw.name)); - strops::copy(pw.address.address1, "Address 1", sizeof(pw.address.address1)); - strops::copy(pw.address.country_code, "NL", sizeof(pw.address.country_code)); - strops::copy(pw.address.city, "Amsterdam", sizeof(pw.address.city)); - strops::copy(pw.address.region, "Noord-Holland", sizeof(pw.address.region)); - strops::copy(pw.address.postal, "1234AA", sizeof(pw.address.postal)); + strops::copy(pw.addr.address1, "Address 1", sizeof(pw.addr.address1)); + strops::copy(pw.addr.country_code, "NL", sizeof(pw.addr.country_code)); + strops::copy(pw.addr.city, "Amsterdam", sizeof(pw.addr.city)); + strops::copy(pw.addr.region, "Noord-Holland", sizeof(pw.addr.region)); + strops::copy(pw.addr.postal, "1234AA", sizeof(pw.addr.postal)); strops::copy(pw.taxid, "T123", sizeof(pw.taxid)); strops::copy(pw.businessid, "B321", sizeof(pw.businessid)); strops::copy(pw.email, "test@test.com", sizeof(pw.email)); @@ -37,11 +37,11 @@ static contact _create_nl_consumer() { contact pw = administration::contact_create_empty(); strops::copy(pw.name, "Piet Pinda", sizeof(pw.name)); - strops::copy(pw.address.address1, "Address 2", sizeof(pw.address.address1)); - strops::copy(pw.address.country_code, "NL", sizeof(pw.address.country_code)); - strops::copy(pw.address.city, "Maastricht", sizeof(pw.address.city)); - strops::copy(pw.address.region, "Limburg", sizeof(pw.address.region)); - strops::copy(pw.address.postal, "4321AA", sizeof(pw.address.postal)); + strops::copy(pw.addr.address1, "Address 2", sizeof(pw.addr.address1)); + strops::copy(pw.addr.country_code, "NL", sizeof(pw.addr.country_code)); + strops::copy(pw.addr.city, "Maastricht", sizeof(pw.addr.city)); + strops::copy(pw.addr.region, "Limburg", sizeof(pw.addr.region)); + strops::copy(pw.addr.postal, "4321AA", sizeof(pw.addr.postal)); strops::copy(pw.email, "test@test.com", sizeof(pw.email)); strops::copy(pw.phone_number, "+317654321", sizeof(pw.phone_number)); pw.type = contact_type::CONTACT_CONSUMER; -- cgit v1.2.3-70-g09d2