public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: Tom Schwindl <schwindl@posteo.de>, alx@kernel.org
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH] landlock.7: printf.h.3head: ffix
Date: Thu, 9 Mar 2023 00:12:17 +0100	[thread overview]
Message-ID: <aa76346d-35db-a6e8-daa2-df2bffa1f4f6@gmail.com> (raw)
In-Reply-To: <20230308210111.2992-1-schwindl@posteo.de>


[-- Attachment #1.1: Type: text/plain, Size: 2293 bytes --]

Hi Tom,

On 3/8/23 22:01, Tom Schwindl wrote:
> Signed-off-by: Tom Schwindl <schwindl@posteo.de>

Patch applied.

Thanks,
Alex

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

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2023-03-08 23:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 21:01 [PATCH] landlock.7: printf.h.3head: ffix Tom Schwindl
2023-03-08 23:12 ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa76346d-35db-a6e8-daa2-df2bffa1f4f6@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=alx@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=schwindl@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox