diff mbox series

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

Message ID 20240131180659.23587-6-pvorel@suse.cz
State New
Headers show
Series MNTPOINT macro cleanup | expand

Commit Message

Petr Vorel Jan. 31, 2024, 6:06 p.m. UTC
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 mbox series

Patch

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)
 {