summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/asprintf.c6
-rw-r--r--lib/libc/stdio/vasprintf.c6
2 files changed, 6 insertions, 6 deletions
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 <Todd.Miller@courtesan.com>
@@ -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 <stdio.h>
@@ -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 <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);
}