summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1998-02-07 20:51:22 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1998-02-07 20:51:22 +0000
commit416b5a3feb12e3bb44b58084d647365d8d82b97f (patch)
tree881eaace6508ed5d2a10948b08b4047f159890a6 /lib
parentab2009da2bb3ca7262ba79210e4d6aaa9ccb87a8 (diff)
Cast pointer in assignment
Diffstat (limited to 'lib')
-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);
}