From owner-cvs-src-old@FreeBSD.ORG Tue May 17 06:36:50 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4658A1065672 for ; Tue, 17 May 2011 06:36:50 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3500D8FC14 for ; Tue, 17 May 2011 06:36:50 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4H6aojN002607 for ; Tue, 17 May 2011 06:36:50 GMT (envelope-from phk@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4H6aoXw002606 for cvs-src-old@freebsd.org; Tue, 17 May 2011 06:36:50 GMT (envelope-from phk@repoman.freebsd.org) Message-Id: <201105170636.p4H6aoXw002606@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to phk@repoman.freebsd.org using -f From: Poul-Henning Kamp Date: Tue, 17 May 2011 06:36:32 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern subr_sbuf.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 06:36:50 -0000 phk 2011-05-17 06:36:32 UTC FreeBSD src repository Modified files: sys/kern subr_sbuf.c Log: SVN rev 222004 on 2011-05-17 06:36:32Z by phk Don't expect PAGE_SIZE to exist on all platforms (It is a pretty arbitrary choice of default size in the first place) Reverse the order of arguments to the internal static sbuf_put_byte() function to match everything else in this file. Move sbuf_putc_func() inside the kernel version of sbuf_vprintf where it belongs. sbuf_putc() incorrectly used sbuf_putc_func() which supress NUL characters, it should use sbuf_put_byte(). Make sbuf_finish() return -1 on error. Minor stylistic nits fixed. Revision Changes Path 1.45 +33 -27 src/sys/kern/subr_sbuf.c