[PATCH] landlock.7: printf.h.3head: ffix

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

 



Signed-off-by: Tom Schwindl <schwindl@xxxxxxxxx>
---
 man3head/printf.h.3head | 6 +++---
 man7/landlock.7         | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/man3head/printf.h.3head b/man3head/printf.h.3head
index af743623ba8b..8f1aa6a37e09 100644
--- a/man3head/printf.h.3head
+++ b/man3head/printf.h.3head
@@ -288,9 +288,9 @@ static ssize_t pad_spaces(FILE *stream, size_t pad_len);
 int
 main(void)
 {
-    if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == -1)
+    if (register_printf_specifier(\[aq]b\[aq], b_printf, b_arginf_sz) == \-1)
         err(EXIT_FAILURE, "register_printf_specifier(\[aq]b\[aq], ...)");
-    if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == -1)
+    if (register_printf_specifier(\[aq]B\[aq], b_printf, b_arginf_sz) == \-1)
         err(EXIT_FAILURE, "register_printf_specifier(\[aq]B\[aq], ...)");
 
     printf("....----....----....----....----\en");
@@ -410,7 +410,7 @@ b_arginf_sz(const struct printf_info *info, size_t n, int argtypes[n],
             [[maybe_unused]] int size[n])
 {
     if (n < 1)
-        return -1;
+        return \-1;
 
     if (info\->is_long_double)
         argtypes[0] = PA_INT | PA_FLAG_LONG_LONG;
diff --git a/man7/landlock.7 b/man7/landlock.7
index b2bc9e10b0c0..bbe00d4c2793 100644
--- a/man7/landlock.7
+++ b/man7/landlock.7
@@ -245,7 +245,7 @@ attr.handled_access_fs =
         LANDLOCK_ACCESS_FS_MAKE_SYM;
 
 ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0);
-if (ruleset_fd == -1) {
+if (ruleset_fd == \-1) {
     perror("Failed to create a ruleset");
     exit(EXIT_FAILURE);
 }
@@ -276,7 +276,7 @@ path_beneath.allowed_access =
         LANDLOCK_ACCESS_FS_READ_DIR;
 
 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC);
-if (path_beneath.parent_fd == -1) {
+if (path_beneath.parent_fd == \-1) {
     perror("Failed to open file");
     close(ruleset_fd);
     exit(EXIT_FAILURE);
-- 
2.39.2




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux