From 74c6c8e679505360e6d520755b3e7368a39c1f22 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 15 Dec 2021 10:35:50 +0100 Subject: [PATCH] vsh-table: Hide vshTableRow typedef MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There's no need for any caller to know vshTableRow typedef. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- 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.39.5