Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Update comment and inspired by that update variable...
details: https://anonhg.NetBSD.org/src/rev/7e88a237fd97
branches: trunk
changeset: 760256:7e88a237fd97
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Jan 01 22:05:11 2011 +0000
description:
Update comment and inspired by that update variable naming too.
no functional change.
diffstat:
sys/kern/kern_descrip.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r b22f4c1c2ba6 -r 7e88a237fd97 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Sat Jan 01 20:43:01 2011 +0000
+++ b/sys/kern/kern_descrip.c Sat Jan 01 22:05:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.208 2010/12/17 22:06:31 yamt Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.209 2011/01/01 22:05:11 pooka Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.208 2010/12/17 22:06:31 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.209 2011/01/01 22:05:11 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1319,15 +1319,15 @@
}
/*
- * Make p2 share p1's filedesc structure.
+ * Make p share curproc's filedesc structure.
*/
void
-fd_share(struct proc *p2)
+fd_share(struct proc *p)
{
filedesc_t *fdp;
fdp = curlwp->l_fd;
- p2->p_fd = fdp;
+ p->p_fd = fdp;
atomic_inc_uint(&fdp->fd_refcnt);
}
Home |
Main Index |
Thread Index |
Old Index