truncate: style(9) some parts

This commit is contained in:
Emmanuel Vadot 2018-07-09 19:02:05 +00:00
parent 4c2b439617
commit dde27dbc9b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336139

View file

@ -46,23 +46,23 @@ static const char rcsid[] =
static void usage(void); static void usage(void);
static int no_create;
static int do_relative;
static int do_refer;
static int got_size;
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
struct stat sb; struct stat sb;
mode_t omode; mode_t omode;
off_t oflow, rsize, sz, tsize; off_t oflow, rsize, sz, tsize;
uint64_t usz; uint64_t usz;
int ch, error, fd, oflags; int ch, error, fd, oflags;
char *fname, *rname; int no_create;
int do_relative;
int do_refer;
int got_size;
char *fname, *rname;
fd = -1; fd = -1;
rsize = tsize = sz = 0; rsize = tsize = sz = 0;
no_create = do_relative = do_refer = got_size = 0;
error = 0; error = 0;
rname = NULL; rname = NULL;
while ((ch = getopt(argc, argv, "cr:s:")) != -1) while ((ch = getopt(argc, argv, "cr:s:")) != -1)