From e1961beea1cd4ccd3683e9b3c26e9b13cd4ed035 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 27 Feb 2026 11:15:57 +0100 Subject: [PATCH] Use gsmtap_inst_fd2() to remove compiler warning gsmtap.c: In function 'osmo_st2_gsmtap_send_apdu': gsmtap.c:69:9: warning: 'gsmtap_inst_fd' is deprecated: Use gsmtap_inst_fd2() instead [-Wdeprecated-declarations] 69 | rc = write(gsmtap_inst_fd(g_gti), buf, gross_len); | ^~ Change-Id: I62de38175e63cb563635a01b025b805981e4b7a9 --- host/lib/gsmtap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/gsmtap.c b/host/lib/gsmtap.c index 3fc3da6b..41b68fa3 100644 --- a/host/lib/gsmtap.c +++ b/host/lib/gsmtap.c @@ -66,7 +66,7 @@ int osmo_st2_gsmtap_send_apdu(uint8_t sub_type, const uint8_t *apdu, unsigned in memcpy(buf + sizeof(*gh), apdu, len); - rc = write(gsmtap_inst_fd(g_gti), buf, gross_len); + rc = write(gsmtap_inst_fd2(g_gti), buf, gross_len); if (rc < 0) { perror("write gsmtap"); free(buf);