From 23be85ae7f9e54a3bd281051b0e006751d507227 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 19 Apr 2006 15:52:58 +0000 Subject: [PATCH] "struct ucred" should not be exposed to userland. Instead make it a "void *" since it is not really used. --- sbin/fsck_lfs/bufcache.c | 4 ++-- sbin/fsck_lfs/bufcache.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/fsck_lfs/bufcache.c b/sbin/fsck_lfs/bufcache.c index b6920f3a568f..556677f2cb3e 100644 --- a/sbin/fsck_lfs/bufcache.c +++ b/sbin/fsck_lfs/bufcache.c @@ -1,4 +1,4 @@ -/* $NetBSD: bufcache.c,v 1.8 2006/03/17 15:53:46 rumble Exp $ */ +/* $NetBSD: bufcache.c,v 1.9 2006/04/19 15:52:58 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. @@ -356,7 +356,7 @@ brelse(struct ubuf * bp) /* Read the given block from disk, return it B_BUSY. */ int -bread(struct uvnode * vp, daddr_t lbn, int size, struct ucred * unused, +bread(struct uvnode * vp, daddr_t lbn, int size, void * unused, struct ubuf ** bpp) { struct ubuf *bp; diff --git a/sbin/fsck_lfs/bufcache.h b/sbin/fsck_lfs/bufcache.h index ba4a436cba5f..8df2057fa571 100644 --- a/sbin/fsck_lfs/bufcache.h +++ b/sbin/fsck_lfs/bufcache.h @@ -1,4 +1,4 @@ -/* $NetBSD: bufcache.h,v 1.5 2005/05/20 18:59:36 perseant Exp $ */ +/* $NetBSD: bufcache.h,v 1.6 2006/04/19 15:52:58 christos Exp $ */ /*- * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. @@ -120,6 +120,6 @@ struct ubuf *incore(struct uvnode *, int); struct ubuf *getblk(struct uvnode *, daddr_t, int); void bwrite(struct ubuf *); void brelse(struct ubuf *); -int bread(struct uvnode *, daddr_t, int, struct ucred *, struct ubuf **); +int bread(struct uvnode *, daddr_t, int, void *, struct ubuf **); void reassignbuf(struct ubuf *, struct uvnode *); void dump_free_lists(void);