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] getline.3: Use %zd rather than %zu when printing 'ssize_t' values
Date: Mon, 7 Sep 2020 10:35:28 +0200 [thread overview]
Message-ID: <20200907083527.12201-1-colomar.6.4.3@gmail.com> (raw)
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man3/getline.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/getline.3 b/man3/getline.3
index 0dc3a562d..8cd974c05 100644
--- a/man3/getline.3
+++ b/man3/getline.3
@@ -184,7 +184,7 @@ main(int argc, char *argv[])
}
while ((nread = getline(&line, &len, stream)) != \-1) {
- printf("Retrieved line of length %zu:\en", nread);
+ printf("Retrieved line of length %zd:\en", nread);
fwrite(line, nread, 1, stdout);
}
--
2.28.0
next reply other threads:[~2020-09-07 8:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 8:35 Alejandro Colomar [this message]
2020-09-07 9:00 ` [PATCH] getline.3: Use %zd rather than %zu when printing 'ssize_t' values 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=20200907083527.12201-1-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