From 416b5a3feb12e3bb44b58084d647365d8d82b97f Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Sat, 7 Feb 1998 20:51:22 +0000 Subject: Cast pointer in assignment --- lib/libc/stdio/asprintf.c | 6 +++--- lib/libc/stdio/vasprintf.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c index a2b22a48f80..419308c2eb9 100644 --- a/lib/libc/stdio/asprintf.c +++ b/lib/libc/stdio/asprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asprintf.c,v 1.2 1998/01/12 06:14:30 millert Exp $ */ +/* $OpenBSD: asprintf.c,v 1.3 1998/02/07 20:51:21 tholo Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: asprintf.c,v 1.2 1998/01/12 06:14:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: asprintf.c,v 1.3 1998/02/07 20:51:21 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -79,6 +79,6 @@ asprintf(str, fmt, va_alist) errno = ENOMEM; ret = -1; } - *str = f._bf._base; + *str = (char *)f._bf._base; return (ret); } diff --git a/lib/libc/stdio/vasprintf.c b/lib/libc/stdio/vasprintf.c index 5e8fa0ec932..e0cf39bcf8b 100644 --- a/lib/libc/stdio/vasprintf.c +++ b/lib/libc/stdio/vasprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vasprintf.c,v 1.2 1998/01/12 06:14:32 millert Exp $ */ +/* $OpenBSD: vasprintf.c,v 1.3 1998/02/07 20:51:21 tholo Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: vasprintf.c,v 1.2 1998/01/12 06:14:32 millert Exp $"; +static char rcsid[] = "$OpenBSD: vasprintf.c,v 1.3 1998/02/07 20:51:21 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -63,6 +63,6 @@ vasprintf(str, fmt, ap) errno = ENOMEM; ret = -1; } - *str = f._bf._base; + *str = (char *)f._bf._base; return (ret); } -- cgit v1.2.3