From owner-cvs-all Thu Nov 14 8:13:46 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F22B937B401; Thu, 14 Nov 2002 08:13:44 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C3D43E42; Thu, 14 Nov 2002 08:13:44 -0800 (PST) (envelope-from tmm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAEGBCmV065067; Thu, 14 Nov 2002 08:11:12 -0800 (PST) (envelope-from tmm@repoman.freebsd.org) Received: (from tmm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAEGBC3q065066; Thu, 14 Nov 2002 08:11:12 -0800 (PST) Message-Id: <200211141611.gAEGBC3q065066@repoman.freebsd.org> From: Thomas Moestl Date: Thu, 14 Nov 2002 08:11:12 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_log.c subr_prf.c src/sys/sys msgbuf.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tmm 2002/11/14 08:11:12 PST Modified files: sys/kern subr_log.c subr_prf.c sys/sys msgbuf.h Log: Make the msg_size, msg_bufx and msg_bufr memebers of struct msgbuf signed, since they describe a ring buffer and signed arithmetic is performed on them. This avoids some evilish casts. Since this changes all but two members of this structure, style(9) those remaining ones, too. Requested by: bde Reviewed by: bde (earlier version) Revision Changes Path 1.52 +6 -9 src/sys/kern/subr_log.c 1.92 +3 -2 src/sys/kern/subr_prf.c 1.19 +6 -6 src/sys/sys/msgbuf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message