[LTP] [PATCH 5/5] doc/C-API: Update MNTPOINT related examples

Petr Vorel pvorel@suse.cz
Wed Jan 31 19:06:59 CET 2024


MNTPOINT is defined in library header, no need to define it in the test.
Also actually use that definition instead of hardcoded value.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 doc/C-Test-API.asciidoc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/doc/C-Test-API.asciidoc b/doc/C-Test-API.asciidoc
index 5dc9516cf..321f9c534 100644
--- a/doc/C-Test-API.asciidoc
+++ b/doc/C-Test-API.asciidoc
@@ -165,9 +165,8 @@ libc and other low level libraries.
 -------------------------------------------------------------------------------
 static int fd0, fd1, mount_flag;
 
-#define MNTPOINT "mntpoint"
-#define FILE1 "mntpoint/file1"
-#define FILE2 "mntpoint/file2"
+#define FILE1 MNTPOINT"/file1"
+#define FILE2 MNTPOINT"/file2"
 
 static void setup(void)
 {
-- 
2.43.0



More information about the ltp mailing list