[libvirt PATCH 3/9] logging: remove redundant XDR typedef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 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
-- 
2.38.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux