git: head(1): Minor cleanups

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 20 00:19:50 PDT 2020


commit e24ad2edd0ebb5d385531cc5778865b909a3b83a
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jun 19 13:13:39 2020 +0800

    head(1): Minor cleanups
    
    * Add '__dead2' attribute to non-return function 'usage()'.
    * Move the 'first' out from the initializer part of the 'for' loop and
      change it to a boolean, making the code a bit cleaner.
    * Remove one duplicate copyright notice.

Summary of changes:
 usr.bin/head/head.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e24ad2edd0ebb5d385531cc5778865b909a3b83a


-- 
DragonFly BSD source repository



More information about the Commits mailing list