summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2001-07-04 10:24:18 +0000
committerjdolecek <jdolecek@NetBSD.org>2001-07-04 10:24:18 +0000
commit978d4eb77b9bab4234746862e7a910b1646f49bc (patch)
tree9de6e99c62ad9f6cf6124cc060a5859aec361e35 /sys/compat/linux/common/linux_socket.c
parent8cbefdbb89b5ee49aac4cf8d9591ef23f21584a2 (diff)
remove no longer used variable
make 'osa' arg of linux_sa_get() const
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
-rw-r--r--sys/compat/linux/common/linux_socket.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 21e24439ad2..def8a10c579 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.32 2001/07/04 10:09:24 jdolecek Exp $ */
+/* $NetBSD: linux_socket.c,v 1.33 2001/07/04 10:24:18 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@ int linux_to_bsd_tcp_sockopt __P((int));
int linux_to_bsd_udp_sockopt __P((int));
int linux_getifhwaddr __P((struct proc *, register_t *, u_int, void *));
static int linux_sa_get __P((caddr_t *sgp, struct sockaddr **sap,
- struct osockaddr *osa, int osalen));
+ const struct osockaddr *osa, int osalen));
static int linux_sa_put __P((struct osockaddr *osa));
static const int linux_to_bsd_domain_[LINUX_AF_MAX] = {
@@ -973,7 +973,6 @@ linux_sys_getpeername(p, v, retval)
syscallarg(caddr_t) asa;
syscallarg(int *) alen;
} */ *uap = v;
- struct sockaddr sa;
int error;
if ((error = sys_getpeername(p, uap, retval)) != 0)
@@ -994,7 +993,7 @@ static int
linux_sa_get(sgp, sap, osa, osalen)
caddr_t *sgp;
struct sockaddr **sap;
- struct osockaddr *osa;
+ const struct osockaddr *osa;
int osalen;
{
int error=0, bdom;