From 7f8abc50b4ef12af83aee71dbc5c723263e12c35 Mon Sep 17 00:00:00 2001 From: yamt Date: Sun, 4 Mar 2007 14:53:09 +0000 Subject: [PATCH] fix fallout from caddr_t changes. --- sys/fs/adosfs/advfsops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/adosfs/advfsops.c b/sys/fs/adosfs/advfsops.c index b53e83fd059f..2732f635a9ea 100644 --- a/sys/fs/adosfs/advfsops.c +++ b/sys/fs/adosfs/advfsops.c @@ -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 -__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