Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2018 19:02:05 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336139 - head/usr.bin/truncate
Message-ID:  <201807091902.w69J25t0095094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807091902.w69J25t0095094>