From 905ebf6b79621bdf42618db37cfb6f1836198762 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 14 May 2025 17:20:57 +0200 Subject: [PATCH] sd-bus: Make sure sd_bus_error and sd_bus_error_map structs are named Otherwise we can't forward declare them. Split out of #37344 --- src/systemd/sd-bus-protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemd/sd-bus-protocol.h b/src/systemd/sd-bus-protocol.h index 45e5f2e317..292b03e0bf 100644 --- a/src/systemd/sd-bus-protocol.h +++ b/src/systemd/sd-bus-protocol.h @@ -115,13 +115,13 @@ typedef struct sd_bus_slot sd_bus_slot; typedef struct sd_bus_creds sd_bus_creds; typedef struct sd_bus_track sd_bus_track; -typedef struct { +typedef struct sd_bus_error { const char *name; const char *message; int _need_free; } sd_bus_error; -typedef struct { +typedef struct sd_bus_error_map { const char *name; int code; } sd_bus_error_map;