public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] landlock.7: printf.h.3head: ffix
@ 2023-03-08 21:01 Tom Schwindl
  2023-03-08 23:12 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Schwindl @ 2023-03-08 21:01 UTC (permalink / raw)
  To: alx.manpages, alx; +Cc: linux-man

Signed-off-by: Tom Schwindl <schwindl@posteo.de>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-08 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08 21:01 [PATCH] landlock.7: printf.h.3head: ffix Tom Schwindl
2023-03-08 23:12 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox