From owner-cvs-all@FreeBSD.ORG Sat Oct 25 21:43:03 2003 Return-Path: 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 5EC5416A4B3; Sat, 25 Oct 2003 21:43:03 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81F6A43FBD; Sat, 25 Oct 2003 21:43:02 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9Q4h2XJ016567; Sat, 25 Oct 2003 21:43:02 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9Q4h2Et016566; Sat, 25 Oct 2003 21:43:02 -0700 (PDT) (envelope-from peter) Message-Id: <200310260443.h9Q4h2Et016566@repoman.freebsd.org> From: Peter Wemm Date: Sat, 25 Oct 2003 21:43:02 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/restore dirs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2003 04:43:03 -0000 peter 2003/10/25 21:43:02 PDT FreeBSD src repository Modified files: sbin/restore dirs.c Log: Fix gcc warnings. If NAME_MAX is 255, and d_namlen is a uint8_t, then d_namlen can never be > NAME_MAX. Stop gcc worrying about this by using a preprocessor test to see if NAME_MAX changes. Revision Changes Path 1.25 +7 -2 src/sbin/restore/dirs.c