summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vasprintf.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1998-02-07 20:51:21 +0000
committertholo <tholo@openbsd.org>1998-02-07 20:51:21 +0000
commit52d3ea141e2cebc51542678f2f51163c873ba7f8 (patch)
tree3ecc7bfb6215d90765a05c66b6b8fa264670bd17 /lib/libc/stdio/vasprintf.c
parentForward declare structures to silence warnings (diff)
downloadwireguard-openbsd-52d3ea141e2cebc51542678f2f51163c873ba7f8.tar.xz
wireguard-openbsd-52d3ea141e2cebc51542678f2f51163c873ba7f8.zip
Cast pointer in assignment
Diffstat (limited to 'lib/libc/stdio/vasprintf.c')
-rw-r--r--lib/libc/stdio/vasprintf.c6
1 files changed, 3 insertions, 3 deletions
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 <Todd.Miller@courtesan.com>
@@ -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 <stdio.h>
@@ -63,6 +63,6 @@ vasprintf(str, fmt, ap)
errno = ENOMEM;
ret = -1;
}
- *str = f._bf._base;
+ *str = (char *)f._bf._base;
return (ret);
}