Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib Some _t purification. no functional change.
details: https://anonhg.NetBSD.org/src/rev/f9b78f1b57c8
branches: trunk
changeset: 753955:f9b78f1b57c8
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 14 14:15:48 2010 +0000
description:
Some _t purification. no functional change.
diffstat:
lib/libp2k/p2k.c | 36 ++++++++++++++++++------------------
lib/libukfs/ukfs.c | 4 ++--
2 files changed, 20 insertions(+), 20 deletions(-)
diffs (176 lines):
diff -r f2d7b5a74a69 -r f9b78f1b57c8 lib/libp2k/p2k.c
--- a/lib/libp2k/p2k.c Wed Apr 14 14:14:52 2010 +0000
+++ b/lib/libp2k/p2k.c Wed Apr 14 14:15:48 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: p2k.c,v 1.33 2009/12/23 01:15:11 pooka Exp $ */
+/* $NetBSD: p2k.c,v 1.34 2010/04/14 14:15:48 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -97,7 +97,7 @@
static int haswizard;
static uid_t wizarduid;
-static kauth_cred_t
+static struct kauth_cred *
cred_create(const struct puffs_cred *pcr)
{
gid_t groups[NGROUPS];
@@ -120,7 +120,7 @@
}
static __inline void
-cred_destroy(kauth_cred_t cred)
+cred_destroy(struct kauth_cred *cred)
{
rump_pub_cred_put(cred);
@@ -129,7 +129,7 @@
static struct componentname *
makecn(const struct puffs_cn *pcn, int myflags)
{
- kauth_cred_t cred;
+ struct kauth_cred *cred;
cred = cred_create(pcn->pcn_cred);
/* LINTED: prehistoric types in first two args */
@@ -544,11 +544,11 @@
const struct puffs_cred *pcr)
{
struct mount *mp = ukfs_getmp(puffs_getspecific(pu));
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
cred = cred_create(pcr);
- rv = rump_pub_vfs_sync(mp, waitfor, (kauth_cred_t)cred);
+ rv = rump_pub_vfs_sync(mp, waitfor, cred);
cred_destroy(cred);
return rv;
@@ -792,7 +792,7 @@
const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
cred = cred_create(pcr);
@@ -810,7 +810,7 @@
const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
cred = cred_create(pcr);
RUMP_VOP_LOCK(vp, LK_EXCLUSIVE);
@@ -827,7 +827,7 @@
const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
cred = cred_create(pcr);
@@ -845,7 +845,7 @@
struct vattr *vap, const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct vattr *va_x;
int rv;
@@ -879,7 +879,7 @@
const struct vattr *vap, const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct vattr *va_x;
int rv;
@@ -906,7 +906,7 @@
const struct puffs_cred *pcr, int flags, off_t offlo, off_t offhi)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
/* "deadfs" */
@@ -927,7 +927,7 @@
p2k_node_mmap(struct puffs_usermount *pu, puffs_cookie_t opc, vm_prot_t flags,
const struct puffs_cred *pcr)
{
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
cred = cred_create(pcr);
@@ -943,7 +943,7 @@
off_t oldoff, off_t newoff, const struct puffs_cred *pcr)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
int rv;
cred = cred_create(pcr);
@@ -1133,7 +1133,7 @@
off_t *cookies, size_t *ncookies)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct uio *uio;
off_t *vop_cookies;
int vop_ncookies;
@@ -1168,7 +1168,7 @@
const struct puffs_cred *pcr, char *linkname, size_t *linklen)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct uio *uio;
int rv;
@@ -1190,7 +1190,7 @@
const struct puffs_cred *pcr, int ioflag)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct uio *uio;
int rv;
@@ -1212,7 +1212,7 @@
const struct puffs_cred *pcr, int ioflag)
{
struct vnode *vp = OPC2VP(opc);
- kauth_cred_t cred;
+ struct kauth_cred *cred;
struct uio *uio;
int rv;
diff -r f2d7b5a74a69 -r f9b78f1b57c8 lib/libukfs/ukfs.c
--- a/lib/libukfs/ukfs.c Wed Apr 14 14:14:52 2010 +0000
+++ b/lib/libukfs/ukfs.c Wed Apr 14 14:15:48 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ukfs.c,v 1.49 2010/03/08 12:38:14 pooka Exp $ */
+/* $NetBSD: ukfs.c,v 1.50 2010/04/14 14:15:48 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -770,7 +770,7 @@
struct uio *uio;
size_t resid;
int rv, eofflag;
- kauth_cred_t cred;
+ struct kauth_cred *cred;
uio = rump_pub_uio_setup(buf, bufsize, *off, RUMPUIO_READ);
cred = rump_pub_cred_suserget();
Home |
Main Index |
Thread Index |
Old Index