From 3ebcd59d21d74ff8508d815c5d61d42f5e659598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 19 Dec 2022 14:14:36 -0500 Subject: [PATCH] logging: remove redundant XDR typedef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every enum/struct/union implicitly includes a typedef in the emitted C code. Furthermore, the syntax used to declare the redundant typedef is not compliant with the XDR spec. Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- src/logging/log_protocol.x | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/logging/log_protocol.x b/src/logging/log_protocol.x index 24340433d6..d5541a999a 100644 --- a/src/logging/log_protocol.x +++ b/src/logging/log_protocol.x @@ -22,13 +22,11 @@ struct virLogManagerProtocolDomain { virLogManagerProtocolUUID uuid; virLogManagerProtocolNonNullString name; }; -typedef struct virLogManagerProtocolDomain virLogManagerProtocolDomain; struct virLogManagerProtocolLogFilePosition { unsigned hyper inode; unsigned hyper offset; }; -typedef struct virLogManagerProtocolLogFilePosition virLogManagerProtocolLogFilePosition; enum virLogManagerProtocolDomainOpenLogFileFlags { VIR_LOG_MANAGER_PROTOCOL_DOMAIN_OPEN_LOG_FILE_TRUNCATE = 1