From owner-cvs-src@FreeBSD.ORG Tue Oct 17 12:21:49 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A08416A407; Tue, 17 Oct 2006 12:21:49 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 278F143D45; Tue, 17 Oct 2006 12:21:49 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9HCLnFE075974; Tue, 17 Oct 2006 12:21:49 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9HCLmNI075973; Tue, 17 Oct 2006 12:21:48 GMT (envelope-from glebius) Message-Id: <200610171221.k9HCLmNI075973@repoman.freebsd.org> From: Gleb Smirnoff Date: Tue, 17 Oct 2006 12:21:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netgraph ng_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2006 12:21:49 -0000 glebius 2006-10-17 12:21:48 UTC FreeBSD src repository Modified files: sys/netgraph ng_socket.c Log: Some cleanup and small changes: - Use malloc() and free() instead of MALLOC() and FREE() macros. - Do not check malloc results if M_WAITOK was used. - Remove linked list of all netgraph sockets. It isn't needed. - Use ng_findhook() instead of searching the list ourselves. - Use NG_WAITOK in syscalls. - Remove unneeded includes. - style(9) Revision Changes Path 1.78 +74 -121 src/sys/netgraph/ng_socket.c