]> xenbits.xensource.com Git - libvirt.git/commitdiff
logging: remove redundant XDR typedef
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 19 Dec 2022 19:14:36 +0000 (14:14 -0500)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Jan 2023 17:33:54 +0000 (12:33 -0500)
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 <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/logging/log_protocol.x

index 24340433d615652b5a471fec2229537d105d8bf7..d5541a999a6e8b34eb263f7c5671960a9317a833 100644 (file)
@@ -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