git: fd22978f860c - stable/13 - strfmon(3): Match the return type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Jan 2023 00:39:12 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=fd22978f860c03543b7b951c6a0886ef3b883c5e
commit fd22978f860c03543b7b951c6a0886ef3b883c5e
Author: Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-11-08 20:16:49 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-01-31 00:38:19 +0000
strfmon(3): Match the return type
(cherry picked from commit f5924ad8fde4d5e9c233b821cb6097c6a46740b5)
---
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 b50d08400cbb..0e3cd53fff2f 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);