Attention is currently required from: osmith.
daniel has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/40868?usp=email )
Change subject: jobs/registry-update-base-images: add debian:trixie
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/40868?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I905863157b35bdc4ca60116be477b90abbd215f1
Gerrit-Change-Number: 40868
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 12 Aug 2025 13:22:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/40870?usp=email )
Change subject: src/bankd/bankd_pcsc: fix error on debian 13 i386
......................................................................
src/bankd/bankd_pcsc: fix error on debian 13 i386
Fix for:
bankd_pcsc.c:316:98: error: passing argument 7 of 'SCardTransmit' from incompatible pointer type [-Wincompatible-pointer-types]
316 | rc = SCardTransmit(worker->reader.pcsc.hCard, pioSendPci, out, out_len, &pioRecvPci, in, in_len);
| ^~~~~~
| |
| size_t * {aka unsigned int *}
In file included from bankd.h:11,
from bankd_pcsc.c:28:
/usr/include/PCSC/winscard.h:98:56: note: expected 'LPDWORD' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'unsigned int *'}
Related: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633…
Related: OS#6828
Change-Id: I4978cd9b91920fe6049ccb398a8d6b93deaa4980
---
M src/bankd/bankd_pcsc.c
1 file changed, 5 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
daniel: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
fixeria: Looks good to me, but someone else must approve
diff --git a/src/bankd/bankd_pcsc.c b/src/bankd/bankd_pcsc.c
index e1477dd..f9651f3 100644
--- a/src/bankd/bankd_pcsc.c
+++ b/src/bankd/bankd_pcsc.c
@@ -313,11 +313,15 @@
SCARD_IO_REQUEST pioRecvPci;
long rc;
- rc = SCardTransmit(worker->reader.pcsc.hCard, pioSendPci, out, out_len, &pioRecvPci, in, in_len);
+ /* DWORD can be different from size_t */
+ DWORD in_len_d = *in_len;
+
+ rc = SCardTransmit(worker->reader.pcsc.hCard, pioSendPci, out, out_len, &pioRecvPci, in, &in_len_d);
/* don't use PCSC_ERROR here as we don't want to log every successful SCardTransmit */
if (rc != SCARD_S_SUCCESS)
LOGW_PCSC_ERROR(worker, rc, "SCardTransmit");
+ *in_len = in_len_d;
return rc;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/40870?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I4978cd9b91920fe6049ccb398a8d6b93deaa4980
Gerrit-Change-Number: 40870
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Attention is currently required from: osmith.
daniel has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-remsim/+/40870?usp=email )
Change subject: src/bankd/bankd_pcsc: fix error on debian 13 i386
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/40870?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I4978cd9b91920fe6049ccb398a8d6b93deaa4980
Gerrit-Change-Number: 40870
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 12 Aug 2025 13:21:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes