[LTP] [PATCH 1/4] lib: move struct tst_sys_conf to internal
Li Wang
liwang@redhat.com
Tue Mar 8 08:37:06 CET 2022
As it only used in tst_sys_conf library interanlly, there is
unnecessary to put in header file.
Signed-off-by: Li Wang <liwang@redhat.com>
---
include/tst_sys_conf.h | 6 ------
lib/tst_sys_conf.c | 6 ++++++
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/tst_sys_conf.h b/include/tst_sys_conf.h
index 323e29a27..507a552e8 100644
--- a/include/tst_sys_conf.h
+++ b/include/tst_sys_conf.h
@@ -5,12 +5,6 @@
#ifndef TST_SYS_CONF_H__
#define TST_SYS_CONF_H__
-struct tst_sys_conf {
- char path[PATH_MAX];
- char value[PATH_MAX];
- struct tst_sys_conf *next;
-};
-
int tst_sys_conf_save_str(const char *path, const char *value);
int tst_sys_conf_save(const char *path);
void tst_sys_conf_restore(int verbose);
diff --git a/lib/tst_sys_conf.c b/lib/tst_sys_conf.c
index 4ad9f8b9b..d7118f15f 100644
--- a/lib/tst_sys_conf.c
+++ b/lib/tst_sys_conf.c
@@ -12,6 +12,12 @@
#include "tst_test.h"
#include "tst_sys_conf.h"
+struct tst_sys_conf {
+ char path[PATH_MAX];
+ char value[PATH_MAX];
+ struct tst_sys_conf *next;
+};
+
static struct tst_sys_conf *save_restore_data;
void tst_sys_conf_dump(void)
--
2.31.1
More information about the ltp
mailing list