From owner-svn-src-head@freebsd.org Sun Aug 9 11:51:31 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0C3899D09D for ; Sun, 9 Aug 2015 11:51:31 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92230AFF for ; Sun, 9 Aug 2015 11:51:31 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by oihn130 with SMTP id n130so76099756oih.2 for ; Sun, 09 Aug 2015 04:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=fYUhINffG50hOl9RyPAQb50tTLo9tTuOGYj89DXAqRc=; b=GbQbomNUan4uJua6h+waL/Zbs/+IY2IB0UO5VOWoQkx2ungoEdmVplMtLPGppE1OGg RVAW3KOiwBvizYX7wjm3aIJdwWoHBm35UMccNObt8QNBBcBqhlLalwyTZvhtylci/TZ9 tIaBysOyKhIpT6wFIOqmczJGBKOBzalQLnDjTyA46nEsJX+VOF8orZCfrsSLUMk48h9L 8ASgT3pRD/g11Khv0SuXDtpjsxrmpNee99sJeAu6q5elVWk7Dr+FhjICLl+hSApxq03n Dyut5iTJrb1HfWWljlvx5ikfcUsI3g3kVXL+UiHIKoeEjeWcdfBXAwgYMYL3FxRAyqoN UGTg== X-Gm-Message-State: ALoCoQlhA2CfrB1NWahYMge1tWMTMhM12HIbA9jz+YWQh3KWEa8lq3IdJ6C1PCKIiSMuYErRrKeP MIME-Version: 1.0 X-Received: by 10.202.67.67 with SMTP id q64mr14694357oia.124.1439121085579; Sun, 09 Aug 2015 04:51:25 -0700 (PDT) Received: by 10.76.50.84 with HTTP; Sun, 9 Aug 2015 04:51:25 -0700 (PDT) X-Originating-IP: [84.27.222.46] In-Reply-To: <201508040234.t742YqQA045448@repo.freebsd.org> References: <201508040234.t742YqQA045448@repo.freebsd.org> Date: Sun, 9 Aug 2015 13:51:25 +0200 Message-ID: Subject: Re: svn commit: r286266 - head/usr.bin/ypmatch From: Ed Schouten To: Marcelo Araujo Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 11:51:31 -0000 Hi Marcelo, 2015-08-04 4:34 GMT+02:00 Marcelo Araujo : > Sync the code with the OpenBSD version. That's a shame. It looks like improvements that we made to our version have been undone because of this. > -static void > +void > usage(void) This function could be static. > + fprintf(stderr, > + "where\n" > + "\tmapname may be either a mapname or a nickname for a map.\n" > + "\t-k prints keys as well as values.\n" > + "\t-t inhibits map nickname translation.\n" > + "\t-x dumps the map nickname translation table.\n"); It is fairly uncommon for BSD utilities to have an extensive help output. Man pages are intended for that purpose. > - while ((c = getopt(argc, argv, "xd:kt")) != -1) > + while ((c=getopt(argc, argv, "xd:kt")) != -1) > switch (c) { > case 'x': > - for (i = 0; i + for (i=0; i ... > - if ((argc-optind) < 2) > + if ((argc-optind) < 2 ) > ... > - if (!domainname) > + if (!domainname) { > yp_get_default_domain(&domainname); > + } Though the style(9) conformance of tool wasn't ideal, this change made it worse. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717