[PATCH 2/4] vsh-table: Hide vshTableRow typedef

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

 



There's no need for any caller to know vshTableRow typedef.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tools/vsh-table.c | 1 +
 tools/vsh-table.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/vsh-table.c b/tools/vsh-table.c
index 7fb0f13ee6..aa2deb8c72 100644
--- a/tools/vsh-table.c
+++ b/tools/vsh-table.c
@@ -31,6 +31,7 @@
 
 #define HEX_ENCODE_LENGTH 4 /* represents length of '\xNN' */
 
+typedef struct _vshTableRow vshTableRow;
 struct _vshTableRow {
     char **cells;
     size_t ncells;
diff --git a/tools/vsh-table.h b/tools/vsh-table.h
index 5ce416cfa1..ad2e8ed50f 100644
--- a/tools/vsh-table.h
+++ b/tools/vsh-table.h
@@ -23,7 +23,6 @@
 #include "vsh.h"
 
 typedef struct _vshTable vshTable;
-typedef struct _vshTableRow vshTableRow;
 
 void vshTableFree(vshTable *table);
 vshTable *vshTableNew(const char *format, ...);
-- 
2.32.0




[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