From: Daniel P. Berrangé Date: Mon, 19 Dec 2022 19:14:36 +0000 (-0500) Subject: logging: remove redundant XDR typedef X-Git-Tag: v9.1.0-rc1~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ebcd59d21d74ff8508d815c5d61d42f5e659598;p=thirdparty%2Flibvirt.git logging: remove redundant XDR typedef 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é --- 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