Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Remove getsombuf(), unused.



details:   https://anonhg.NetBSD.org/src/rev/d5ef624efba1
branches:  trunk
changeset: 449441:d5ef624efba1
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Mar 07 12:29:14 2019 +0000

description:
Remove getsombuf(), unused.

diffstat:

 sys/kern/uipc_socket.c |  14 ++------------
 sys/sys/socketvar.h    |   4 +---
 2 files changed, 3 insertions(+), 15 deletions(-)

diffs (53 lines):

diff -r d08366b878d7 -r d5ef624efba1 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Thu Mar 07 12:22:43 2019 +0000
+++ b/sys/kern/uipc_socket.c    Thu Mar 07 12:29:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.270 2019/03/07 12:22:43 maxv Exp $   */
+/*     $NetBSD: uipc_socket.c,v 1.271 2019/03/07 12:29:14 maxv Exp $   */
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.270 2019/03/07 12:22:43 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.271 2019/03/07 12:29:14 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -375,16 +375,6 @@
        return space;
 }
 
-struct mbuf *
-getsombuf(struct socket *so, int type)
-{
-       struct mbuf *m;
-
-       m = m_get(M_WAIT, type);
-       MCLAIM(m, so->so_mowner);
-       return m;
-}
-
 static int
 socket_listener_cb(kauth_cred_t cred, kauth_action_t action, void *cookie,
     void *arg0, void *arg1, void *arg2, void *arg3)
diff -r d08366b878d7 -r d5ef624efba1 sys/sys/socketvar.h
--- a/sys/sys/socketvar.h       Thu Mar 07 12:22:43 2019 +0000
+++ b/sys/sys/socketvar.h       Thu Mar 07 12:29:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socketvar.h,v 1.159 2018/12/16 17:46:58 christos Exp $ */
+/*     $NetBSD: socketvar.h,v 1.160 2019/03/07 12:29:14 maxv Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -252,8 +252,6 @@
 struct sockaddr_big;
 enum uio_seg;
 
-struct mbuf *getsombuf(struct socket *, int);
-
 /* 0x400 is SO_OTIMESTAMP */
 #define SOOPT_TIMESTAMP(o)     ((o) & (SO_TIMESTAMP | 0x400))
 



Home | Main Index | Thread Index | Old Index