From owner-svn-src-head@freebsd.org Mon Jul 9 19:02:06 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 788C21047134; Mon, 9 Jul 2018 19:02:06 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 294617FACA; Mon, 9 Jul 2018 19:02:06 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0AF5F18FF6; Mon, 9 Jul 2018 19:02:06 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w69J25uL095095; Mon, 9 Jul 2018 19:02:05 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w69J25t0095094; Mon, 9 Jul 2018 19:02:05 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201807091902.w69J25t0095094@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Mon, 9 Jul 2018 19:02:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336139 - head/usr.bin/truncate X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: head/usr.bin/truncate X-SVN-Commit-Revision: 336139 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 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: Mon, 09 Jul 2018 19:02:06 -0000 Author: manu Date: Mon Jul 9 19:02:05 2018 New Revision: 336139 URL: https://svnweb.freebsd.org/changeset/base/336139 Log: truncate: style(9) some parts Modified: head/usr.bin/truncate/truncate.c Modified: head/usr.bin/truncate/truncate.c ============================================================================== --- head/usr.bin/truncate/truncate.c Mon Jul 9 19:00:39 2018 (r336138) +++ head/usr.bin/truncate/truncate.c Mon Jul 9 19:02:05 2018 (r336139) @@ -46,23 +46,23 @@ static const char rcsid[] = static void usage(void); -static int no_create; -static int do_relative; -static int do_refer; -static int got_size; - int main(int argc, char **argv) { - struct stat sb; - mode_t omode; - off_t oflow, rsize, sz, tsize; + struct stat sb; + mode_t omode; + off_t oflow, rsize, sz, tsize; uint64_t usz; - int ch, error, fd, oflags; - char *fname, *rname; + int ch, error, fd, oflags; + int no_create; + int do_relative; + int do_refer; + int got_size; + char *fname, *rname; fd = -1; rsize = tsize = sz = 0; + no_create = do_relative = do_refer = got_size = 0; error = 0; rname = NULL; while ((ch = getopt(argc, argv, "cr:s:")) != -1)