From: Alejandro Colomar <colomar.6.4.3@gmail.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, Alejandro Colomar <colomar.6.4.3@gmail.com>
Subject: [PATCH 1/2] fopencookie.3: printf()'s .* expects an int; cast accordingly
Date: Mon, 7 Sep 2020 12:21:16 +0200 [thread overview]
Message-ID: <20200907102116.16924-2-colomar.6.4.3@gmail.com> (raw)
In-Reply-To: <20200907102116.16924-1-colomar.6.4.3@gmail.com>
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man3/fopencookie.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/fopencookie.3 b/man3/fopencookie.3
index 472a7f3d2..5394ce4a5 100644
--- a/man3/fopencookie.3
+++ b/man3/fopencookie.3
@@ -438,7 +438,7 @@ main(int argc, char *argv[])
break;
}
- printf("/%.*s/\en", nread, buf);
+ printf("/%.*s/\en", (int) nread, buf);
}
exit(EXIT_SUCCESS);
--
2.28.0
next prev parent reply other threads:[~2020-09-07 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 10:21 [PATCH 0/2] fopencookie.3: Fix EXAMPLES section Alejandro Colomar
2020-09-07 10:21 ` Alejandro Colomar [this message]
2020-09-07 10:31 ` [PATCH 1/2] fopencookie.3: printf()'s .* expects an int; cast accordingly Michael Kerrisk (man-pages)
2020-09-07 10:21 ` [PATCH 2/2] fopencookie.3: Fix bugs in example Alejandro Colomar
2020-09-07 10:34 ` Michael Kerrisk (man-pages)
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=20200907102116.16924-2-colomar.6.4.3@gmail.com \
--to=colomar.6.4.3@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/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