From owner-freebsd-current@FreeBSD.ORG Sun Apr 20 07:10:47 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 442D337B416 for ; Sun, 20 Apr 2003 07:10:47 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96CE043FBD for ; Sun, 20 Apr 2003 07:10:46 -0700 (PDT) (envelope-from leimy2k@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h3KEAkdP025938 for ; Sun, 20 Apr 2003 07:10:46 -0700 (PDT) Received: from mac.com ([67.33.226.72]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HDNBDX00.CE1 for ; Sun, 20 Apr 2003 07:10:45 -0700 Date: Sun, 20 Apr 2003 09:10:44 -0500 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: multipart/mixed; boundary=Apple-Mail-2--473799176 From: David Leimbach To: freebsd-current@freebsd.org Message-Id: X-Mailer: Apple Mail (2.552) Subject: patch for libdisk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 14:10:47 -0000 --Apple-Mail-2--473799176 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I have not been able to buildworld for CURRENT from a FBSD 5.0 RELEASE box for a few days here. The problem was not handling all enumerated cases in a swtich in src/lib/libdisk/rules.c. I solved it by adding a "default:" to the end of the switch. Patch attatched: [my first patch... tell me if there is something wrong with it :)] --Apple-Mail-2--473799176 Content-Disposition: attachment; filename=rules.c.patch Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="rules.c.patch" Index: rules.c =================================================================== RCS file: /home/dave/fbsd//src/lib/libdisk/rules.c,v retrieving revision 1.29 diff -u -r1.29 rules.c --- rules.c 4 Apr 2003 16:35:13 -0000 1.29 +++ rules.c 20 Apr 2003 14:04:46 -0000 @@ -261,6 +261,8 @@ if (c->next) Check_Chunk(d, c->next, msg); break; + default: + break; } } --Apple-Mail-2--473799176--