git: f5924ad8fde4 - main - strfmon(3): Match the return type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Jan 2023 09:03:27 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=f5924ad8fde4d5e9c233b821cb6097c6a46740b5
commit f5924ad8fde4d5e9c233b821cb6097c6a46740b5
Author: Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-11-08 20:16:49 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-01-25 09:02:55 +0000
strfmon(3): Match the return type
Reviewed by: kib
MFC after: 1 week
---
lib/libc/stdlib/strfmon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c
index ba02544eb2ec..f36e6f2b0d82 100644
--- a/lib/libc/stdlib/strfmon.c
+++ b/lib/libc/stdlib/strfmon.c
@@ -645,7 +645,7 @@ ssize_t
strfmon(char * __restrict s, size_t maxsize, const char * __restrict format,
...)
{
- size_t ret;
+ ssize_t ret;
va_list ap;
va_start(ap, format);
@@ -659,7 +659,7 @@ ssize_t
strfmon_l(char * __restrict s, size_t maxsize, locale_t loc,
const char * __restrict format, ...)
{
- size_t ret;
+ ssize_t ret;
va_list ap;
va_start(ap, format);