summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-05-17 12:52:13 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-05-17 12:52:13 +0000
commit69b8aac01676aa3c5ce992be4de80407fd980741 (patch)
tree6d79ca693d6c1f8bda3ee5da2c7bdc4ab9c239cd /sys/kern
parentd07d3947fa84b7464fcb85b860fae43eebc683dd (diff)
Don't cast malloc()
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_getcwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c
index fc93427560f..687d38c28b5 100644
--- a/sys/kern/vfs_getcwd.c
+++ b/sys/kern/vfs_getcwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_getcwd.c,v 1.8 2006/05/01 21:50:48 pedro Exp $ */
+/* $OpenBSD: vfs_getcwd.c,v 1.9 2006/05/17 12:52:12 pedro Exp $ */
/* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */
/*
@@ -123,7 +123,7 @@ vfs_getcwd_scandir(struct vnode **lvpp, struct vnode **uvpp, char **bpp,
if (dirbuflen < va.va_blocksize)
dirbuflen = va.va_blocksize;
- dirbuf = (char *) malloc(dirbuflen, M_TEMP, M_WAITOK);
+ dirbuf = malloc(dirbuflen, M_TEMP, M_WAITOK);
off = 0;
@@ -419,7 +419,7 @@ sys___getcwd(struct proc *p, void *v, register_t *retval)
else if (len < 2)
return (ERANGE);
- path = (char *) malloc(len, M_TEMP, M_WAITOK);
+ path = malloc(len, M_TEMP, M_WAITOK);
bp = &path[len];
bend = bp;