"struct ucred" should not be exposed to userland. Instead make it a "void *"

since it is not really used.
This commit is contained in:
christos 2006-04-19 15:52:58 +00:00
parent ab0d027f23
commit 23be85ae7f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);