On Mon, Dec 02, 2024 at 12:37:28PM +0100, Ahmad Fatoum wrote: > asprintf and vasprintf return only -1 as error code, so have the stub > follow suit for symmetry. > > No functional change expected. > > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > include/stdio.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks Sascha > > diff --git a/include/stdio.h b/include/stdio.h > index 03cd3d281890..883b06529fdc 100644 > --- a/include/stdio.h > +++ b/include/stdio.h > @@ -32,7 +32,7 @@ static inline char *basprintf(const char *fmt, ...) > } > static inline int asprintf(char **strp, const char *fmt, ...) > { > - return -ENOMEM; > + return -1; > } > static inline char *bvasprintf(const char *fmt, va_list ap) > { > @@ -40,7 +40,7 @@ static inline char *bvasprintf(const char *fmt, va_list ap) > } > static inline int vasprintf(char **strp, const char *fmt, va_list ap) > { > - return -ENOMEM; > + return -1; > } > #endif > > -- > 2.39.5 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |