From owner-cvs-src@FreeBSD.ORG Thu Jul 3 22:30:22 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3D101065767; Thu, 3 Jul 2008 22:30:22 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 845AE8FC12; Thu, 3 Jul 2008 22:30:22 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m63MUMfx038700; Thu, 3 Jul 2008 22:30:22 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m63MUMa7038699; Thu, 3 Jul 2008 22:30:22 GMT (envelope-from edwin@repoman.freebsd.org) Message-Id: <200807032230.m63MUMa7038699@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to edwin@repoman.freebsd.org using -f From: Edwin Groothuis Date: Thu, 3 Jul 2008 22:30:18 +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/usr.bin/ldd ldd.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: Thu, 03 Jul 2008 22:30:22 -0000 edwin 2008-07-03 22:30:18 UTC FreeBSD src repository Modified files: usr.bin/ldd ldd.c Log: SVN rev 180235 on 2008-07-03 22:30:18Z by edwin Extract the determination of the kind of (dynamic) executable from the main-loop into a seperate function. Instead of using hardcoded environment variables, define them in a lookup table. For the rest, no functionality changes. Approved by: bde (mentor) MFC after: 1 week Revision Changes Path 1.35 +121 -82 src/usr.bin/ldd/ldd.c