DragonFly BSD
DragonFly commits List (threaded) for 2012-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: objformat: Avoid unnecessary getenv calls


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Feb 2012 03:50:38 -0800 (PST)

commit 2350540c6a2436184b8aedaa11309106d5527e5b
Author: John Marino <draco@marino.st>
Date:   Sun Feb 12 12:13:28 2012 +0100

    objformat: Avoid unnecessary getenv calls
    
    The CCVER and BINUTILSVERS are always checked by objformat, even when
    these values won't be used.  For example, there's no need to know the
    value of CCVER when executing the realelf binutils binary, but it was
    getting requested in all cases.
    
    This commit limits the getenv requests to the bare minimum required.
    Additionally it adds whitespace to the commands structure for the
    purpose of aesthetics.

Summary of changes:
 usr.bin/objformat/objformat.c |   64 +++++++++++++++++++++-------------------
 1 files changed, 34 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2350540c6a2436184b8aedaa11309106d5527e5b


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]