fix fallout from caddr_t changes.
This commit is contained in:
parent
5dbe04b416
commit
7f8abc50b4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: advfsops.c,v 1.33 2007/01/19 14:49:09 hannken Exp $ */
|
||||
/* $NetBSD: advfsops.c,v 1.34 2007/03/04 14:53:09 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.33 2007/01/19 14:49:09 hannken Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.34 2007/03/04 14:53:09 yamt Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -453,7 +453,7 @@ adosfs_vget(mp, an, vpp)
|
|||
* convert from BCPL string and
|
||||
* from: "part:dir/file" to: "/part/dir/file"
|
||||
*/
|
||||
nam = bp->b_data + (6 * sizeof(long));
|
||||
nam = (char *)bp->b_data + (6 * sizeof(long));
|
||||
namlen = strlen(nam);
|
||||
tmp = nam;
|
||||
while (*tmp && *tmp != ':')
|
||||
|
@ -489,7 +489,7 @@ adosfs_vget(mp, an, vpp)
|
|||
/*
|
||||
* copy in name (from original block)
|
||||
*/
|
||||
nam = bp->b_data + (ap->nwords - 20) * sizeof(u_int32_t);
|
||||
nam = (char *)bp->b_data + (ap->nwords - 20) * sizeof(u_int32_t);
|
||||
namlen = *(u_char *)nam++;
|
||||
if (namlen > 30) {
|
||||
#ifdef DIAGNOSTIC
|
||||
|
|
Loading…
Reference in New Issue