Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common linux_sa_get: g/c curproc use, we ge...
details: https://anonhg.NetBSD.org/src/rev/1ead3faa0a25
branches: trunk
changeset: 569777:1ead3faa0a25
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Sep 05 09:38:17 2004 +0000
description:
linux_sa_get: g/c curproc use, we get the process as one of arguments
diffstat:
sys/compat/linux/common/linux_socket.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 924e62a4471c -r 1ead3faa0a25 sys/compat/linux/common/linux_socket.c
--- a/sys/compat/linux/common/linux_socket.c Sun Sep 05 09:09:02 2004 +0000
+++ b/sys/compat/linux/common/linux_socket.c Sun Sep 05 09:38:17 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.51 2004/08/29 20:10:42 jdolecek Exp $ */
+/* $NetBSD: linux_socket.c,v 1.52 2004/09/05 09:38:17 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.51 2004/08/29 20:10:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.52 2004/09/05 09:38:17 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -1510,7 +1510,6 @@
!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))) {
sin6->sin6_scope_id = 0;
} else {
- struct proc *p = curproc; /* XXX */
int uid = p->p_cred && p->p_ucred ?
p->p_ucred->cr_uid : -1;
Home |
Main Index |
Thread Index |
Old Index